1 | <?php |
||
20 | class DomainResource extends Resource |
||
21 | { |
||
22 | public static function index() |
||
26 | |||
27 | public static function type() |
||
31 | |||
32 | const TYPE_DOMAIN_REGISTRATION = 'dregistration'; |
||
33 | const TYPE_DOMAIN_TRANSFER = 'dtransfer'; |
||
34 | const TYPE_DOMAIN_RENEWAL = 'drenewal'; |
||
35 | const TYPE_DOMAIN_DELETE_AGP = 'ddelete_agp'; |
||
36 | const TYPE_DOMAIN_RESTORE_EXPIRED = 'drestore_expired'; |
||
37 | const TYPE_DOMAIN_RESTORE_DELETED = 'drestore_deleted'; |
||
38 | |||
39 | const TYPE_PREMIUM_DNS = 'premium_dns'; |
||
40 | |||
41 | /** |
||
42 | * @return array |
||
43 | */ |
||
44 | public function getAvailableTypes() |
||
55 | |||
56 | public function getServiceTypes() |
||
62 | |||
63 | |||
64 | public function isTypeCorrect() |
||
68 | } |
||
69 |
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.