yii\console\Controller::getActionMethodReflection PHP Method

getActionMethodReflection() protected method

protected getActionMethodReflection ( Action $action ) : ReflectionMethod
$action yii\base\Action
return ReflectionMethod
    protected function getActionMethodReflection($action)
    {
        if (!isset($this->_reflections[$action->id])) {
            if ($action instanceof InlineAction) {
                $this->_reflections[$action->id] = new \ReflectionMethod($this, $action->actionMethod);
            } else {
                $this->_reflections[$action->id] = new \ReflectionMethod($action, 'run');
            }
        }
        return $this->_reflections[$action->id];
    }