Cake\Upgrade\Shell\Task\StageTask::_getPath PHP Метод

_getPath() защищенный Метод

Get the path to operate on. Uses either the first argument, or the plugin parameter if its set.
protected _getPath ( ) : string
Результат string
    protected function _getPath()
    {
        if (empty($this->args[0]) || !file_exists($this->args[0])) {
            throw new InternalErrorException('Path not specified or invalid.');
        }
        if (count($this->args) === 1) {
            return realpath($this->args[0]);
        }
        return realpath($this->args[1]);
    }