These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /** |
||
4 | * @copyright Copyright (c) Flipbox Digital Limited |
||
5 | * @license https://flipboxfactory.com/software/organization/license |
||
6 | * @link https://www.flipboxfactory.com/software/organization/ |
||
7 | */ |
||
8 | |||
9 | namespace flipbox\organizations\actions\users; |
||
10 | |||
11 | use flipbox\craft\ember\actions\records\UpdateRecord; |
||
12 | use flipbox\organizations\records\UserType; |
||
13 | |||
14 | /** |
||
15 | * @author Flipbox Factory <[email protected]> |
||
16 | * @since 1.0.0 |
||
17 | */ |
||
18 | class UpdateUserType extends UpdateRecord |
||
19 | { |
||
20 | /** |
||
21 | * @inheritdoc |
||
22 | */ |
||
23 | public $validBodyParams = [ |
||
24 | 'name', |
||
25 | 'handle' |
||
26 | ]; |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public function run($type) |
||
32 | { |
||
33 | return parent::run($type); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @inheritdoc |
||
38 | * @return UserType |
||
39 | */ |
||
40 | protected function find($identifier) |
||
41 | { |
||
42 | return UserType::findOne($identifier); |
||
0 ignored issues
–
show
Bug
Compatibility
introduced
by
Loading history...
|
|||
43 | } |
||
44 | } |
||
45 |