| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class Order |
||
| 7 | { |
||
| 8 | protected string $tableName = ''; |
||
| 9 | /** @var string|int */ |
||
| 10 | protected $columnName = ''; |
||
| 11 | protected string $direction = ''; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param string $tableName |
||
| 15 | * @param string|int $columnName |
||
| 16 | * @param string $direction |
||
| 17 | * @return $this |
||
| 18 | */ |
||
| 19 | 23 | public function setData(string $tableName, $columnName, string $direction = ''): self |
|
| 20 | { |
||
| 21 | 23 | $this->tableName = $tableName; |
|
| 22 | 23 | $this->columnName = $columnName; |
|
| 23 | 23 | $this->direction = $direction; |
|
| 24 | 23 | return $this; |
|
| 25 | } |
||
| 26 | |||
| 27 | 14 | public function getTableName(): string |
|
| 28 | { |
||
| 29 | 14 | return $this->tableName; |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string|int |
||
| 34 | */ |
||
| 35 | 23 | public function getColumnName() |
|
| 38 | } |
||
| 39 | |||
| 40 | 23 | public function getDirection(): string |
|
| 43 | } |
||
| 44 | } |
||
| 45 |