| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class ViewRelationshipAction extends Action |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string the scenario to be assigned to the new model before it is validated and saved. |
||
| 16 | */ |
||
| 17 | public $scenario = Model::SCENARIO_DEFAULT; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string the name of the view action. This property is need to create the URL when the model is successfully created. |
||
| 21 | */ |
||
| 22 | public $viewAction = 'view-relationship'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Gets a relationship between resources |
||
| 26 | * @return array a relationship definition between resources |
||
| 27 | * @throws NotFoundHttpException if the relationship doesn't exist |
||
| 28 | */ |
||
| 29 | public function run($id, $name) |
||
| 51 | } |
||
| 52 | } |