| 1 | <?php |
||
| 11 | class CustomManagedCloudStorage extends CloudStorage |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var callable |
||
| 15 | */ |
||
| 16 | protected $saveCallback; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param string $driver |
||
| 20 | * @param callable $saveCallback |
||
| 21 | * |
||
| 22 | * @return CustomManagedCloudStorage |
||
| 23 | */ |
||
| 24 | public static function init($driver, $saveCallback) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param array $attributes |
||
| 36 | * @param callable $saveCallback |
||
| 37 | * |
||
| 38 | * @return $this |
||
| 39 | */ |
||
| 40 | public function restore(array $attributes, $saveCallback) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param array $options |
||
| 51 | * |
||
| 52 | * @return void |
||
| 53 | */ |
||
| 54 | public function save(array $options = []) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param $callback |
||
| 66 | * |
||
| 67 | * @return $this |
||
| 68 | */ |
||
| 69 | public function setSaveCallback($callback) |
||
| 75 | } |
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.