| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | final class DefaultAttribute extends BaseModel implements Attribute |
||
| 13 | { |
||
| 14 | 5 | public function __construct( |
|
| 19 | 5 | } |
|
| 20 | |||
| 21 | 2 | public function getName(): string |
|
| 22 | { |
||
| 23 | 2 | return $this->name; |
|
| 24 | } |
||
| 25 | |||
| 26 | 1 | public function getDataType(): string |
|
| 27 | { |
||
| 28 | 1 | return $this->dataType; |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | public function getMaxLength(): ?string |
|
| 34 | } |
||
| 35 | |||
| 36 | /** @inheritDoc */ |
||
| 37 | 2 | public function __toArray(): array |
|
| 46 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: