| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class DefaultController extends Controller |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @inheritdoc |
||
| 23 | */ |
||
| 24 | public $defaultAction = 'list'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var ServiceInterface |
||
| 28 | */ |
||
| 29 | protected $_service; |
||
| 30 | |||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritdoc |
||
| 34 | */ |
||
| 35 | public function __construct($id, $module, ServiceInterface $service, $config = []) |
||
| 36 | { |
||
| 37 | $this->_service = $service; |
||
| 38 | parent::__construct($id, $module, $config); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Renders clients list |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function actionList() |
||
| 50 | ]); |
||
| 51 | } |
||
| 53 |