| Total Complexity | 2 | 
| Total Lines | 31 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 0 | ||
| 1 | <?php namespace Pz\Doctrine\Rest\Action;  | 
            ||
| 8 | class RelatedItemAction extends ItemAction  | 
            ||
| 9 | { | 
            ||
| 10 | /**  | 
            ||
| 11 | * Field that contains the related resourse key  | 
            ||
| 12 | *  | 
            ||
| 13 | * @var string  | 
            ||
| 14 | */  | 
            ||
| 15 | protected $relatedKey;  | 
            ||
| 16 | |||
| 17 | public function __construct(RestRepository $repository, $transformer, $relatedKey)  | 
            ||
| 18 | 	{ | 
            ||
| 19 | parent::__construct($repository, $transformer);  | 
            ||
| 20 | $this->relatedKey = $relatedKey;  | 
            ||
| 21 | }  | 
            ||
| 22 | |||
| 23 | /**  | 
            ||
| 24 | * @param RestRequestContract $request  | 
            ||
| 25 | *  | 
            ||
| 26 | * @return RestResponse  | 
            ||
| 27 | */  | 
            ||
| 28 | public function handle($request)  | 
            ||
| 39 | }  | 
            ||
| 40 | }  | 
            ||
| 41 |