| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Table implements ITable |
||
| 8 | { |
||
| 9 | protected string $tableName; |
||
| 10 | |||
| 11 | protected ?string $alias = null; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Table constructor. |
||
| 15 | * |
||
| 16 | * @param string $tableName table name |
||
| 17 | * @param string|null $alias |
||
| 18 | */ |
||
| 19 | 33 | public function __construct(string $tableName, ?string $alias = null) |
|
| 20 | { |
||
| 21 | 33 | $this->tableName = $tableName; |
|
| 22 | 33 | $this->alias = $alias; |
|
| 23 | 33 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 29 | public function __toString(): string |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | 5 | public function getParams(): array |
|
| 43 | } |
||
| 44 | } |
||
| 45 |