mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-02 21:19:58 +09:00
updated dependencies + working api connection
This commit is contained in:
19
vendor/symfony/css-selector/Node/Specificity.php
vendored
19
vendor/symfony/css-selector/Node/Specificity.php
vendored
@@ -33,19 +33,32 @@ class Specificity
|
||||
private $b;
|
||||
private $c;
|
||||
|
||||
public function __construct(int $a, int $b, int $c)
|
||||
/**
|
||||
* @param int $a
|
||||
* @param int $b
|
||||
* @param int $c
|
||||
*/
|
||||
public function __construct($a, $b, $c)
|
||||
{
|
||||
$this->a = $a;
|
||||
$this->b = $b;
|
||||
$this->c = $c;
|
||||
}
|
||||
|
||||
public function plus(Specificity $specificity): Specificity
|
||||
/**
|
||||
* @return self
|
||||
*/
|
||||
public function plus(Specificity $specificity)
|
||||
{
|
||||
return new self($this->a + $specificity->a, $this->b + $specificity->b, $this->c + $specificity->c);
|
||||
}
|
||||
|
||||
public function getValue(): int
|
||||
/**
|
||||
* Returns global specificity value.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->a * self::A_FACTOR + $this->b * self::B_FACTOR + $this->c * self::C_FACTOR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user