1 | <?php |
||
17 | class DeleteObjectJob extends AbstractQueuedJob |
||
18 | { |
||
19 | /** |
||
20 | * @param DataObject $node |
||
21 | */ |
||
22 | public function __construct($node = null) |
||
31 | |||
32 | /** |
||
33 | * @param string (default: Object) |
||
34 | * @return DataObject |
||
35 | */ |
||
36 | protected function getObject($name = 'SilverStripe\\Core\\Object') |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getJobType() |
||
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getTitle() |
||
61 | |||
62 | public function process() |
||
69 | } |
||
70 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write 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.