| 1 | <?php |
||
| 13 | class AttributePreg extends AttributeFilterBase |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $pattern; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var bool |
||
| 22 | */ |
||
| 23 | private $invert; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param ElementIterator $elements |
||
| 27 | * @param string $attr name of the attribute, '*' for every attribute |
||
| 28 | * @param string $pattern pcre based regex pattern for the attribute value |
||
| 29 | * @param bool $invert |
||
| 30 | * |
||
| 31 | * @throws InvalidArgumentException |
||
| 32 | */ |
||
| 33 | public function __construct(ElementIterator $elements, string $attr, string $pattern, bool $invert = false) |
||
| 44 | |||
| 45 | public function accept() |
||
| 49 | } |
||
| 50 |