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