1 | <?php |
||
38 | class RefreshToken extends BaseModel implements RefreshTokenModelInterface |
||
39 | { |
||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | 7 | public function behaviors() |
|
52 | |||
53 | /** |
||
54 | * @inheritdoc |
||
55 | */ |
||
56 | 7 | public function rules() |
|
63 | |||
64 | /** |
||
65 | * @return \sweelix\oauth2\server\interfaces\RefreshTokenServiceInterface |
||
66 | */ |
||
67 | 8 | protected static function getDataService() |
|
71 | |||
72 | /** |
||
73 | * @inheritdoc |
||
74 | */ |
||
75 | 7 | public function key() |
|
79 | |||
80 | /** |
||
81 | * @return array definition of model attributes |
||
82 | * @since 1.0.0 |
||
83 | */ |
||
84 | 7 | public function attributesDefinition() |
|
94 | |||
95 | /** |
||
96 | * @inheritdoc |
||
97 | */ |
||
98 | 7 | public static function findOne($id) |
|
102 | |||
103 | /** |
||
104 | * @inheritdoc |
||
105 | */ |
||
106 | 7 | public function save($runValidation = true, $attributes = null) |
|
116 | |||
117 | /** |
||
118 | * @inheritdoc |
||
119 | */ |
||
120 | 2 | public function delete() |
|
124 | |||
125 | /** |
||
126 | * @inheritdoc |
||
127 | */ |
||
128 | 2 | public static function findAllByUserId($userId) |
|
132 | |||
133 | /** |
||
134 | * @inheritdoc |
||
135 | */ |
||
136 | 2 | public static function findAllByClientId($clientId) |
|
140 | } |
||
141 |