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\organizations; |
||
10 | |||
11 | use flipbox\craft\ember\actions\elements\ViewElement; |
||
12 | use flipbox\organizations\elements\Organization; |
||
13 | use flipbox\organizations\elements\Organization as OrganizationElement; |
||
14 | |||
15 | /** |
||
16 | * @author Flipbox Factory <[email protected]> |
||
17 | * @since 1.0.0 |
||
18 | */ |
||
19 | class ViewOrganization extends ViewElement |
||
20 | { |
||
21 | /** |
||
22 | * @inheritdoc |
||
23 | */ |
||
24 | public function run($organization) |
||
25 | { |
||
26 | return parent::run($organization); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @inheritdoc |
||
31 | * @return OrganizationElement |
||
32 | */ |
||
33 | protected function findById(int $id) |
||
34 | { |
||
35 | return Organization::findOne([ |
||
0 ignored issues
–
show
Bug
Compatibility
introduced
by
Loading history...
|
|||
36 | 'id' => $id |
||
37 | ]); |
||
38 | } |
||
39 | } |
||
40 |