class Specificity

Represents a node specificity.

This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.

Constants

A_FACTOR

B_FACTOR

C_FACTOR

Methods

__construct(int $a, int $b, int $c)

No description

plus(Specificity $specificity)

No description

int
getValue()

Returns global specificity value.

int
compareTo(Specificity $specificity)

Returns -1 if the object specificity is lower than the argument, 0 if they are equal, and 1 if the argument is lower.

Details

at line 41
__construct(int $a, int $b, int $c)

Parameters

int $a
int $b
int $c

at line 51
Specificity plus(Specificity $specificity)

Parameters

Specificity $specificity

Return Value

Specificity

at line 61
int getValue()

Returns global specificity value.

Return Value

int

at line 72
int compareTo(Specificity $specificity)

Returns -1 if the object specificity is lower than the argument, 0 if they are equal, and 1 if the argument is lower.

Parameters

Specificity $specificity

Return Value

int