| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Relations extends AbstractRepository |
||
| 15 | { |
||
| 16 | public const API_ROOT = "relations"; |
||
| 17 | |||
| 18 | public function getModelClass(): string |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @throws MethodNotImplementedException |
||
| 25 | */ |
||
| 26 | public function create(AbstractModel $model): ?AbstractModel |
||
| 27 | { |
||
| 28 | throw new MethodNotImplementedException( |
||
| 29 | "Method " . __FUNCTION__ . " not implemented for apì: " . self::API_ROOT |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @throws MethodNotImplementedException |
||
| 35 | */ |
||
| 36 | public function search(array $params = []): ArrayCollection |
||
| 37 | { |
||
| 38 | throw new MethodNotImplementedException( |
||
| 39 | "Method " . __FUNCTION__ . " not implemented for apì: " . self::API_ROOT |
||
| 40 | ); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @throws MethodNotImplementedException |
||
| 45 | */ |
||
| 46 | public function update(AbstractModel $model): ?AbstractModel |
||
| 47 | { |
||
| 48 | throw new MethodNotImplementedException( |
||
| 49 | "Method " . __FUNCTION__ . " not implemented for apì: " . self::API_ROOT |
||
| 50 | ); |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @throws MethodNotImplementedException |
||
| 55 | */ |
||
| 56 | public function all(?string $endpoint = null): ArrayCollection |
||
| 60 | ); |
||
| 61 | } |
||
| 62 | } |
||
| 63 |