class Part
Selector part base class
@author Marco Marchiò <marco.mm89@gmail.com>
@abstract
Hierarchy
- class \Peast\Selector\Node\Part\Part
Expanded class hierarchy of Part
File
-
vendor/
mck89/ peast/ lib/ Peast/ Selector/ Node/ Part/ Part.php, line 21
Namespace
Peast\Selector\Node\PartView source
abstract class Part {
/**
* Priority
*
* @var int
*/
protected $priority = 5;
public function getPriority() {
return $this->priority;
}
/**
* Returns true if the selector part matches the given node,
* false otherwise
*
* @param Node $node Node
* @param Node $parent Parent node
*
* @return bool
*
* @abstract
*/
public abstract function check(Node $node, $parent = null);
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
Part::$priority | protected | property | Priority | 4 |
Part::check | abstract public | function | Returns true if the selector part matches the given node, false otherwise |
5 |
Part::getPriority | public | function |