| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class Order extends ValueObject implements \JsonSerializable |
||
| 25 | { |
||
| 26 | const ASC = 'asc'; |
||
| 27 | const DESC = 'desc'; |
||
| 28 | |||
| 29 | protected $column; |
||
| 30 | protected $dir; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Initializing constructor. |
||
| 34 | * |
||
| 35 | * @param int $column |
||
| 36 | * @param string $dir |
||
| 37 | */ |
||
| 38 | 1 | public function __construct(int $column, string $dir) |
|
| 42 | 1 | } |
|
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | * |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | 1 | public function jsonSerialize() |
|
| 57 |