travis-ci
112 of 112 new or added lines in 6 files covered. (100.0%)
99 of 174 relevant lines covered (56.9%)
1.7 hits per line
1 |
<?php
|
|
2 |
namespace Axado\Volume; |
|
3 |
|
|
4 |
trait VolumeTrait
|
|
5 |
{ |
|
6 |
/**
|
|
7 |
* Returns the instance as array. |
|
8 |
* |
|
9 |
* @return array |
|
10 |
*/ |
|
11 |
public function volumeToArray(): array |
|
|
{ |
× |
|
return [
|
× |
|
'sku' => $this->getSku(), |
1 only 65.2 ✔ |
|
'quantidade' => $this->getQuantity(), |
1 only 65.2 ✔ |
|
'preco' => $this->getPriceUnit(), |
1 only 65.2 ✔ |
|
'altura' => $this->getHeight(), |
1 only 65.2 ✔ |
|
'comprimento' => $this->getLength(), |
1 only 65.2 ✔ |
|
'largura' => $this->getWidth(), |
1 only 65.2 ✔ |
|
'peso' => $this->getWeight(), |
1 only 65.2 ✔ |
|
]; |
× |
|
} |
× |
23 |
} |