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