1 | <?php |
||
38 | class AccessToken extends BaseModel implements AccessTokenModelInterface |
||
39 | { |
||
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | 12 | public function behaviors() |
|
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | 11 | public function rules() |
|
64 | |||
65 | /** |
||
66 | * @return \sweelix\oauth2\server\interfaces\AccessTokenServiceInterface |
||
67 | */ |
||
68 | 13 | protected static function getDataService() |
|
72 | |||
73 | /** |
||
74 | * @inheritdoc |
||
75 | */ |
||
76 | 11 | public function key() |
|
80 | |||
81 | /** |
||
82 | * @return array definition of model attributes |
||
83 | * @since 1.0.0 |
||
84 | */ |
||
85 | 11 | public function attributesDefinition() |
|
95 | |||
96 | /** |
||
97 | * @inheritdoc |
||
98 | */ |
||
99 | 9 | public static function findOne($id) |
|
103 | |||
104 | /** |
||
105 | * @inheritdoc |
||
106 | */ |
||
107 | 11 | public function save($runValidation = true, $attributes = null) |
|
117 | |||
118 | /** |
||
119 | * @inheritdoc |
||
120 | */ |
||
121 | 2 | public function delete() |
|
125 | |||
126 | /** |
||
127 | * @inheritdoc |
||
128 | */ |
||
129 | 3 | public static function findAllByUserId($userId) |
|
133 | |||
134 | /** |
||
135 | * @inheritdoc |
||
136 | */ |
||
137 | 1 | public static function deleteAllByUserId($userId) |
|
141 | |||
142 | /** |
||
143 | * @inheritdoc |
||
144 | */ |
||
145 | 3 | public static function findAllByClientId($clientId) |
|
149 | |||
150 | /** |
||
151 | * @inheritdoc |
||
152 | */ |
||
153 | 2 | public static function deleteAllByClientId($clientId) |
|
157 | |||
158 | } |
||
159 |