hiqdev /
hidev
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | /* |
||
| 4 | * Task runner, code generator and build tool for easier continuos integration |
||
| 5 | * |
||
| 6 | * @link https://github.com/hiqdev/hidev |
||
| 7 | * @package hidev |
||
| 8 | * @license BSD-3-Clause |
||
| 9 | * @copyright Copyright (c) 2014-2016, HiQDev (http://hiqdev.com/) |
||
| 10 | */ |
||
| 11 | |||
| 12 | namespace hidev\controllers; |
||
| 13 | |||
| 14 | use yii\helpers\ArrayHelper; |
||
| 15 | use Symfony\Component\Yaml\Yaml; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Dump goal. |
||
| 19 | */ |
||
| 20 | class DumpController extends CommonController |
||
| 21 | { |
||
| 22 | protected $_before = ['start']; |
||
| 23 | |||
| 24 | public function actionMake() |
||
| 25 | { |
||
| 26 | $data = $this->getConfig()->getItems(); |
||
|
0 ignored issues
–
show
|
|||
| 27 | print Yaml::dump(ArrayHelper::toArray($data), 4); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: