1 | <?php |
||
38 | class Plan extends Model |
||
39 | { |
||
40 | public const TYPE_SERVER = 'server'; |
||
41 | public const TYPE_PCDN = 'pcdn'; |
||
42 | public const TYPE_VCDN = 'vcdn'; |
||
43 | public const TYPE_TEMPLATE = 'template'; |
||
44 | public const TYPE_CERTIFICATE = 'certificate'; |
||
45 | public const TYPE_DOMAIN = 'domain'; |
||
46 | public const TYPE_SWITCH = 'switch'; |
||
47 | public const TYPE_AVDS = 'avds'; |
||
48 | public const TYPE_OVDS = 'ovds'; |
||
49 | public const TYPE_SVDS = 'svds'; |
||
50 | public const TYPE_CLIENT = 'client'; |
||
51 | public const TYPE_HARDWARE = 'hardware'; |
||
52 | public const TYPE_ANYCASTCDN = 'anycastcdn'; |
||
53 | public const TYPE_REFERRAL = 'referral'; |
||
54 | public const TYPE_VPS = 'vps'; |
||
55 | public const TYPE_SNAPSHOT = 'snapshot'; |
||
56 | public const TYPE_VOLUME = 'volume'; |
||
57 | public const TYPE_STORAGE = 'storage'; |
||
58 | public const TYPE_PRIVATE_CLOUD_BACKUP = 'private_cloud_backup'; |
||
59 | public const TYPE_PRIVATE_CLOUD = 'private_cloud'; |
||
60 | |||
61 | protected $knownTypes = [ |
||
62 | self::TYPE_SERVER => self::TYPE_SERVER, |
||
63 | self::TYPE_PCDN => self::TYPE_PCDN, |
||
64 | self::TYPE_VCDN => self::TYPE_VCDN, |
||
65 | self::TYPE_TEMPLATE => self::TYPE_TEMPLATE, |
||
66 | self::TYPE_CERTIFICATE => self::TYPE_CERTIFICATE, |
||
67 | self::TYPE_DOMAIN => self::TYPE_DOMAIN, |
||
68 | self::TYPE_SWITCH => self::TYPE_SWITCH, |
||
69 | self::TYPE_AVDS => self::TYPE_AVDS, |
||
70 | self::TYPE_OVDS => self::TYPE_OVDS, |
||
71 | self::TYPE_SVDS => self::TYPE_SVDS, |
||
72 | self::TYPE_CLIENT => self::TYPE_CLIENT, |
||
73 | self::TYPE_HARDWARE => self::TYPE_HARDWARE, |
||
74 | self::TYPE_ANYCASTCDN => self::TYPE_ANYCASTCDN, |
||
75 | self::TYPE_VPS => self::TYPE_VPS, |
||
76 | self::TYPE_SNAPSHOT => self::TYPE_SNAPSHOT, |
||
77 | self::TYPE_VOLUME => self::TYPE_VOLUME, |
||
78 | self::TYPE_STORAGE => self::TYPE_STORAGE, |
||
79 | self::TYPE_PRIVATE_CLOUD_BACKUP => self::TYPE_PRIVATE_CLOUD_BACKUP, |
||
80 | self::TYPE_PRIVATE_CLOUD => self::TYPE_PRIVATE_CLOUD, |
||
81 | self::TYPE_REFERRAL => self::TYPE_REFERRAL, |
||
82 | ]; |
||
83 | |||
84 | use ModelTrait; |
||
85 | |||
86 | /** |
||
87 | * @var string |
||
88 | */ |
||
89 | public $monthly; |
||
90 | |||
91 | public $servers = []; |
||
92 | |||
93 | public function rules() |
||
107 | |||
108 | public function attributeLabels() |
||
119 | |||
120 | public function getPlanAttributes(): array |
||
133 | |||
134 | public function getPrices() |
||
142 | |||
143 | public function getPriceHistory() |
||
147 | |||
148 | public function getDesiredPriceClass() |
||
156 | |||
157 | public function getSales() |
||
161 | |||
162 | public function getTypeOptions() |
||
166 | |||
167 | public function getStateOptions() |
||
171 | |||
172 | public function isDeleted(): bool |
||
176 | |||
177 | public function supportsIndividualPricesCreation(): bool |
||
185 | |||
186 | public function supportsSharedPricesCreation(): bool |
||
194 | |||
195 | /** |
||
196 | * {@inheritdoc} |
||
197 | * @return PlanQuery |
||
198 | */ |
||
199 | public static function find($options = []) |
||
205 | |||
206 | public function isKnownType(string $type = null): bool |
||
210 | } |
||
211 |
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.