| 1 | <?php |
||
| 16 | class FileAwareException extends \Exception |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string|SplFileInfo |
||
| 20 | */ |
||
| 21 | private $fileLocation; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get the location of the website file that triggered this exception |
||
| 25 | * |
||
| 26 | * @return string |
||
|
|
|||
| 27 | */ |
||
| 28 | public function getFileLocation () |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Set the location of the website file that triggered this exception |
||
| 35 | * |
||
| 36 | * @param string|SplFileInfo $fileLocation |
||
| 37 | */ |
||
| 38 | public function setFileLocation ($fileLocation) |
||
| 42 | } |
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.