| 1 | <?php |
||
| 5 | class AddonAuthor extends DataObject |
||
| 6 | { |
||
| 7 | |||
| 8 | public static $db = array( |
||
| 9 | 'Name' => 'Varchar(255)', |
||
| 10 | 'Email' => 'Varchar(255)', |
||
| 11 | 'Homepage' => 'Varchar(255)', |
||
| 12 | 'Role' => 'Varchar(255)' |
||
| 13 | ); |
||
| 14 | |||
| 15 | public static $belongs_many_many = array( |
||
| 16 | 'Versions' => 'AddonVersion' |
||
| 17 | ); |
||
| 18 | |||
| 19 | public static $default_sort = 'Name'; |
||
| 20 | |||
| 21 | public function GravatarUrl($size, $default = 'mm') |
||
| 30 | |||
| 31 | public function Link() |
||
| 35 | |||
| 36 | public function Addons() |
||
| 40 | } |
||
| 41 |
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@propertyannotation 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.