| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | abstract class TimestampValueObject implements TimestampValueObjectInterface |
||
| 12 | { |
||
| 13 | private $value; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @throws Exception if value is invalid |
||
| 17 | */ |
||
| 18 | public function __construct(?DateTimeImmutable $value) |
||
| 19 | { |
||
| 20 | $this->guard($value); |
||
| 21 | $this->value = $value; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getDateTime(): ?DateTimeImmutable |
||
| 30 | } |
||
| 31 | |||
| 32 | public function equals(TimestampValueObjectInterface $other): bool |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getValue(): ?int |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @throws Exception if value is invalid |
||
| 47 | */ |
||
| 48 | abstract protected function guard(?DateTimeImmutable $value): void; |
||
| 49 | } |
||
| 50 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.