1 | <?php |
||
19 | class DateTimeScalar extends ScalarDefinition |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | public const TYPE_NAME = 'DateTime'; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | public const TYPE_DESCRIPTION = 'The DateTime scalar conforms to the RFC 3339 profile of the ISO 8601 standard.'; |
||
30 | |||
31 | /** |
||
32 | * BooleanScalar constructor. |
||
33 | * @param Document $document |
||
34 | 9 | */ |
|
35 | public function __construct(Document $document) |
||
41 | |||
42 | /** |
||
43 | * @param mixed $value |
||
44 | * @return \DateTimeInterface |
||
45 | * @throws TypeConflictException |
||
46 | */ |
||
47 | public function parse($value): \DateTimeInterface |
||
65 | |||
66 | /** |
||
67 | * @param mixed $value |
||
68 | * @return string |
||
69 | * @throws TypeConflictException |
||
70 | */ |
||
71 | public function serialize($value): string |
||
89 | |||
90 | /** |
||
91 | * @return int |
||
92 | */ |
||
93 | public function getLine(): int |
||
97 | } |
||
98 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.