| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php namespace Pz\Doctrine\Rest\Action\Relationships; |
||
| 11 | class RelationshipsItemDeleteAction extends RestAction |
||
| 12 | { |
||
| 13 | use RelatedAction; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * RelatedRestAction constructor. |
||
| 17 | * |
||
| 18 | * @param RestRepository $repository |
||
| 19 | * @param string $field |
||
| 20 | * @param RestRepository $related |
||
| 21 | * @param TransformerAbstract $transformer |
||
| 22 | */ |
||
| 23 | 1 | public function __construct(RestRepository $repository, $field, RestRepository $related, $transformer) |
|
| 24 | { |
||
| 25 | 1 | parent::__construct($repository, $transformer); |
|
| 26 | 1 | $this->related = $related; |
|
| 27 | 1 | $this->field = $field; |
|
| 28 | 1 | } |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @param RestRequestContract $request |
||
| 32 | * |
||
| 33 | * @return RestResponse |
||
| 34 | * @throws RestException |
||
| 35 | */ |
||
| 36 | 1 | public function handle($request) |
|
| 47 | } |
||
| 48 | } |
||
| 49 |