Swagger\Context::getRootContext PHP Method

getRootContext() public method

public getRootContext ( ) : Context
return Context
    public function getRootContext()
    {
        if ($this->_parent) {
            return $this->_parent->getRootContext();
        }
        return $this;
    }