1 | <?php |
||
37 | class Member extends BaseBlameableModel |
||
38 | { |
||
39 | public $createdByAttribute = 'organization_guid'; |
||
40 | public $updatedByAttribute = false; |
||
41 | public $hostClass = Organization::class; |
||
42 | |||
43 | public $memberAttribute = 'user_guid'; |
||
44 | public $memberUserClass = User::class; |
||
45 | public $contentAttribute = 'nickname'; |
||
46 | private $noInitMemberUser; |
||
47 | /** |
||
48 | * @return User |
||
49 | */ |
||
50 | 6 | protected function getNoInitMemberUser() |
|
58 | |||
59 | /** |
||
60 | * @inheritdoc |
||
61 | */ |
||
62 | 16 | public function init() |
|
72 | |||
73 | public $descriptionAttribute = 'description'; |
||
74 | |||
75 | 16 | public function getMemberUserRules() |
|
82 | |||
83 | 16 | public function getMemberRoleRules() |
|
89 | |||
90 | /** |
||
91 | * Set member user. |
||
92 | * @param User|string|integer $user |
||
93 | */ |
||
94 | 16 | public function setMemberUser($user) |
|
105 | |||
106 | 6 | public function getMemberUser() |
|
110 | |||
111 | /** |
||
112 | * Get Organization Query. |
||
113 | * Alias of `getHost` method. |
||
114 | * @return OrganizationQuery |
||
115 | */ |
||
116 | 5 | public function getOrganization() |
|
117 | { |
||
118 | 5 | return $this->getHost(); |
|
119 | } |
||
120 | |||
121 | /** |
||
122 | * Set Organization. |
||
123 | * @param BaseOrganization $organization |
||
124 | * @return boolean |
||
125 | */ |
||
126 | 16 | public function setOrganization($organization) |
|
130 | |||
131 | public function assignRole($role) |
||
135 | |||
136 | public function removeRole($role) |
||
140 | |||
141 | 16 | public function rules() |
|
145 | |||
146 | /** |
||
147 | * @inheritdoc |
||
148 | */ |
||
149 | 16 | public static function tableName() |
|
153 | |||
154 | /** |
||
155 | * @inheritdoc |
||
156 | */ |
||
157 | public function attributeLabels() |
||
172 | } |
||
173 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.