| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class Attributes |
||
| 15 | { |
||
| 16 | /** @var int|string */ |
||
| 17 | protected $columnName = ''; |
||
| 18 | protected string $property = ''; |
||
| 19 | protected ?IRule $condition = null; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string|int $columnName |
||
| 23 | * @param string $property |
||
| 24 | * @param IRule|null $condition |
||
| 25 | */ |
||
| 26 | 20 | public function __construct($columnName = '', string $property = '', ?IRule $condition = null) |
|
| 27 | { |
||
| 28 | 20 | $this->columnName = $columnName; |
|
| 29 | 20 | $this->property = $property; |
|
| 30 | 20 | $this->condition = $condition; |
|
| 31 | 20 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return int|string |
||
| 35 | */ |
||
| 36 | 19 | public function getColumnName() |
|
| 37 | { |
||
| 38 | 19 | return $this->columnName; |
|
| 39 | } |
||
| 40 | |||
| 41 | 18 | public function getProperty(): string |
|
| 42 | { |
||
| 43 | 18 | return $this->property; |
|
| 44 | } |
||
| 45 | |||
| 46 | 4 | public function getCondition(): ?IRule |
|
| 49 | } |
||
| 50 | } |
||
| 51 |