parseDeclaration example

return count($items) ? $items : null;
    }
    
    /** * Parses a statement list item * * @return Node\Statement|Node\Declaration|null */
    protected function parseStatementListItem()
    {
        if ($declaration = $this->parseDeclaration()) {
            return $declaration;
        } elseif ($statement = $this->parseStatement()) {
            return $statement;
        }
        return null;
    }
    
    /** * Parses a statement * * @return Node\Statement|null */
Home | Imprint | This part of the site doesn't use cookies.