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 | * Set member user. |
||
82 | * @param User|string|integer $user |
||
83 | */ |
||
84 | public function setMemberUser($user) |
||
95 | |||
96 | public function getMemberUser() |
||
100 | |||
101 | /** |
||
102 | * Get Organization Query. |
||
103 | * Alias of `getHost` method. |
||
104 | * @return OrganizationQuery |
||
105 | */ |
||
106 | public function getOrganization() |
||
110 | |||
111 | /** |
||
112 | * Set Organization. |
||
113 | * @param Organization $organization |
||
114 | * @return boolean |
||
115 | */ |
||
116 | public function setOrganization($organization) |
||
120 | |||
121 | public function rules() |
||
125 | |||
126 | /** |
||
127 | * @inheritdoc |
||
128 | */ |
||
129 | public static function tableName() |
||
133 | } |
||
134 |
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.