| 1 | <?php |
||
| 14 | class License extends ClassStructure { |
||
| 15 | /** @var string The name of the license type. It's encouraged to use an OSI compatible license. */ |
||
| 16 | public $name; |
||
| 17 | |||
| 18 | /** @var string The URL pointing to the license. */ |
||
| 19 | public $url; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param Properties|static $properties |
||
| 23 | * @param JsonBasicSchema $ownerSchema |
||
| 24 | */ |
||
| 25 | public static function setUpProperties($properties, JsonBasicSchema $ownerSchema) |
||
| 40 | } |
||
| 41 | |||
| 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@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.