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