Symfony\Component\CssSelector\Node\Specificity
Represents a node specificity.
This component is a port of the Python cssselector library,
which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.
- Author: Jean-François Simon <jeanfrancois.simon@sensiolabs.com>
Synopsis
class Specificity
{
- // constants
- const A_FACTOR = 100;
- const B_FACTOR = 10;
- const C_FACTOR = 1;
- // methods
- public void __construct()
- public Specificity plus()
- public int getValue()
Constants
Name | Value |
---|---|
A_FACTOR | 100 |
B_FACTOR | 10 |
C_FACTOR | 1 |
Members
private
- $a — int
- $b — int
- $c — int
Methods
public
- __construct() — Constructor.
- getValue() — Returns global specificity value.
- plus()