| 1 | <?php |
||
| 14 | class StorageUnavailableException extends \Exception |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * StorageUnavailableException constructor. |
||
| 18 | * |
||
| 19 | * @param CloudStorage $storage |
||
| 20 | */ |
||
| 21 | public function __construct(CloudStorage $storage) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param CloudStorage $storage |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | protected function why(CloudStorage $storage) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param CloudStorage $storage |
||
| 44 | * |
||
| 45 | * @return mixed |
||
| 46 | */ |
||
| 47 | protected function reason(CloudStorage $storage) |
||
| 54 | } |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.