1 | <?php |
||
35 | abstract class Invitation extends BaseBlameableModel |
||
36 | { |
||
37 | public $hostClass = User::class; |
||
38 | public $idAttribute = false; |
||
39 | public $updatedAtAttribute = false; |
||
40 | /** |
||
41 | * @var array The content field in the data table should be an integer. |
||
42 | */ |
||
43 | public $contentAttributeRule = ['integer']; |
||
44 | /** |
||
45 | * @var bool Whether to allow to send invitation to the same invitee repeatedly. |
||
46 | */ |
||
47 | public $allowRepeated = true; |
||
48 | |||
49 | /** |
||
50 | * @return array |
||
51 | */ |
||
52 | public function getInviteeRules() |
||
66 | |||
67 | /** |
||
68 | * @return array |
||
69 | */ |
||
70 | public function rules() |
||
74 | |||
75 | /** |
||
76 | * @param User|string $invitee |
||
77 | * @return string |
||
78 | */ |
||
79 | public function setInvitee($invitee) |
||
86 | |||
87 | /** |
||
88 | * @return User |
||
89 | */ |
||
90 | public function getInvitee() |
||
95 | |||
96 | /** |
||
97 | * @param User|string $invitee |
||
98 | * @return BaseBlameableQuery |
||
99 | */ |
||
100 | public static function findByInvitee($invitee) |
||
104 | |||
105 | /** |
||
106 | * @return string |
||
107 | */ |
||
108 | 1 | public static function tableName() |
|
112 | } |
||
113 |