| 1 | <?php |
||
| 10 | class DateParserOffset extends AbstractDateParser |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var SimpleXMLElement |
||
| 14 | */ |
||
| 15 | protected $xmlHeader; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param SimpleXMLElement $xmlHeader |
||
| 19 | * |
||
| 20 | * @return void |
||
| 21 | */ |
||
| 22 | public function setXmlHeader(SimpleXMLElement $xmlHeader) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return DateTimeInterface |
||
|
|
|||
| 29 | */ |
||
| 30 | protected function getDateTime() |
||
| 47 | } |
||
| 48 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.