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