Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public static function setUpProperties($properties, JsonBasicSchema $ownerSchema) |
||
23 | { |
||
24 | $properties->ref = JsonBasicSchema::string(); |
||
25 | $ownerSchema->addPropertyMapping('$ref', self::names()->ref); |
||
|
|||
26 | $ownerSchema->type = 'object'; |
||
27 | $ownerSchema->additionalProperties = false; |
||
28 | $ownerSchema->required = array ( |
||
29 | 0 => '$ref', |
||
30 | ); |
||
31 | } |
||
32 | } |
||
34 |
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@property
annotation 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.