| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 21 | protected function processInfo(Template\Asset\Block $info) { |
||
| 22 | |||
| 23 | # Set times |
||
| 24 | |||
| 25 | $info->time_created = Date::get(DATE_FORMAT_DATETIME, @filectime($this->entity->pathFull())); |
||
|
|
|||
| 26 | |||
| 27 | $info->time_modified = Date::get(DATE_FORMAT_DATETIME, @filemtime($this->entity->pathFull())); |
||
| 28 | |||
| 29 | # Set permissions |
||
| 30 | |||
| 31 | $info->permissions = @fileperms($this->entity->pathFull()); |
||
| 32 | } |
||
| 33 | } |
||
| 35 |
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@propertyannotation 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.