1 | <?php |
||
10 | class EmptyStructure implements Structure |
||
11 | { |
||
12 | /** |
||
13 | * Register new active row class for table |
||
14 | * @param string $tableName |
||
15 | * @param string $activeRowClass |
||
16 | * @return Structure |
||
17 | */ |
||
18 | 4 | public function registerActiveRowClass(string $tableName, string $activeRowClass): Structure |
|
22 | |||
23 | /** |
||
24 | * Register new selection class for table |
||
25 | * @param string $tableName |
||
26 | * @param string $selectionClass |
||
27 | * @return Structure |
||
28 | */ |
||
29 | 2 | public function registerSelectionClass(string $tableName, string $selectionClass): Structure |
|
33 | |||
34 | /** |
||
35 | * Register new scopes for table |
||
36 | * @param string $tableName |
||
37 | * @param array $scopes |
||
38 | * @return Structure |
||
39 | */ |
||
40 | 2 | public function registerScopes(string $tableName, array $scopes): Structure |
|
44 | |||
45 | /** |
||
46 | * Fetch row class by table |
||
47 | * @param string $table |
||
48 | * @return string |
||
49 | */ |
||
50 | 4 | public function getActiveRowClass(string $table): string |
|
54 | |||
55 | /** |
||
56 | * Fetch selection class by table |
||
57 | * @param string $table |
||
58 | * @return string |
||
59 | */ |
||
60 | 4 | public function getSelectionClass(string $table): string |
|
64 | |||
65 | /** |
||
66 | * Returns all scopes registered for table |
||
67 | * @param string $table |
||
68 | * @return array |
||
69 | */ |
||
70 | 2 | public function getScopes(string $table): array |
|
74 | |||
75 | /** |
||
76 | * Returns one scope |
||
77 | * @param string $table |
||
78 | * @param string $scope |
||
79 | * @return Scope|null |
||
80 | */ |
||
81 | 2 | public function getScope(string $table, string $scope): ?Scope |
|
85 | } |
||
86 |