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