| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | #[\Override] |
||
| 17 | public function isNew(): bool |
||
| 18 | { |
||
| 19 | if ($this->new === null) { |
||
| 20 | $this->new = !$this->doesKeyExist($this->buildDescription()); |
||
| 21 | } |
||
| 22 | return $this->new; |
||
|
|
|||
| 23 | } |
||
| 24 | |||
| 25 | abstract protected function doesKeyExist($constraint); |
||
| 26 | abstract protected function addKey($constraint); |
||
| 27 | abstract protected function dropKey($constraint); |
||
| 28 | abstract protected function getNamePostfix(); |
||
| 29 | |||
| 30 | #[\Override] |
||
| 31 | public function buildDescription() |
||
| 32 | { |
||
| 64 |