Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | protected static function autoDefinitionAutoTimestamps(): void |
||
20 | { |
||
21 | static::$properties['created_at'] = [ |
||
22 | 'type' => Type::DATE, |
||
23 | 'validate' => 'timestamp|db_timestamp', |
||
24 | ]; |
||
25 | static::$properties['updated_at'] = [ |
||
26 | 'type' => Type::DATE, |
||
27 | 'validate' => 'timestamp|db_timestamp', |
||
28 | ]; |
||
29 | } |
||
30 | |||
42 |
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.