DiDom\Query::getCompiled PHP Method

getCompiled() public static method

public static getCompiled ( ) : array
return array
    public static function getCompiled()
    {
        return static::$compiled;
    }

Usage Example

Example #1
0
 public function testGetCompiled()
 {
     Query::setCompiled([]);
     $selector = '.post h2';
     $xpath = '//*[contains(concat(" ", normalize-space(@class), " "), " post ")]//h2';
     $compiled = [$selector => $xpath];
     Query::compile($selector);
     $this->assertEquals($compiled, Query::getCompiled());
 }
All Usage Examples Of DiDom\Query::getCompiled