PHPHtmlParser\Selector::getSelectors PHP Method

getSelectors() public method

Returns the selectors that where found in __construct
public getSelectors ( ) : array
return array
    public function getSelectors()
    {
        return $this->selectors;
    }

Usage Example

Example #1
0
 public function testParseSelectorStringNoKey()
 {
     $selector = new Selector('div[!visible]');
     $selectors = $selector->getSelectors();
     $this->assertTrue($selectors[0][0]['noKey']);
 }