Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
8 | class DataOrderEvent |
||
9 | { |
||
10 | private AdminInterface $admin; |
||
11 | private DataSourceInterface $dataSource; |
||
12 | private array $orderBy; |
||
13 | |||
14 | public function __construct(AdminInterface $admin, DataSourceInterface $dataSource, array $orderBy) |
||
15 | { |
||
16 | $this->admin = $admin; |
||
17 | $this->dataSource = $dataSource; |
||
18 | $this->orderBy = $orderBy; |
||
19 | } |
||
20 | |||
21 | public function getAdmin(): AdminInterface |
||
22 | { |
||
23 | return $this->admin; |
||
24 | } |
||
25 | |||
26 | public function getDataSource(): DataSourceInterface |
||
27 | { |
||
28 | return $this->dataSource; |
||
29 | } |
||
30 | |||
31 | public function getOrderBy(): array |
||
34 | } |
||
35 | } |
||
36 |