1 | <?php |
||
35 | class Member extends BaseBlameableModel |
||
36 | { |
||
37 | public $createdByAttribute = 'organization_guid'; |
||
38 | public $updatedByAttribute = false; |
||
39 | public $hostClass = Organization::class; |
||
40 | |||
41 | public $memberAttribute = 'user_guid'; |
||
42 | public $memberUserClass = User::class; |
||
43 | private $noInitMemberUser; |
||
44 | /** |
||
45 | * @return User |
||
46 | */ |
||
47 | protected function getNoInitMemberUser() |
||
55 | |||
56 | /** |
||
57 | * @inheritdoc |
||
58 | */ |
||
59 | public function init() |
||
69 | |||
70 | public $descriptionAttribute = 'description'; |
||
71 | |||
72 | public function getMemberUserRules() |
||
79 | |||
80 | /** |
||
81 | * |
||
82 | * @param User $user |
||
83 | */ |
||
84 | public function setMemberUser($user) |
||
88 | |||
89 | public function getMemberUser() |
||
93 | |||
94 | /** |
||
95 | * Get Organization Query. |
||
96 | * Alias of `getHost` method. |
||
97 | * @return OrganizationQuery |
||
98 | */ |
||
99 | public function getOrganization() |
||
103 | |||
104 | public function rules() |
||
108 | |||
109 | /** |
||
110 | * @inheritdoc |
||
111 | */ |
||
112 | public static function tableName() |
||
116 | } |
||
117 |
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@property
annotation 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.