Symfony\Component\CssSelector\XPathExpr::getElement PHP Method

getElement() public method

public getElement ( )
    public function getElement()
    {
        return $this->element;
    }

Usage Example

 /**
  * undocumented function
  *
  * @param XPathExpr $xpath
  * @param XPathExpr $expr
  *
  * @return XPathExpr
  */
 protected function _xpath_nth_of_type($xpath, $expr)
 {
     if ($xpath->getElement() == '*') {
         throw new ParseException('*:nth-of-type() is not implemented');
     }
     return $this->_xpath_nth_child($xpath, $expr, false, false);
 }
All Usage Examples Of Symfony\Component\CssSelector\XPathExpr::getElement