mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-03 05:29:53 +09:00
updated dependencies + working api connection
This commit is contained in:
20
vendor/symfony/css-selector/Node/ClassNode.php
vendored
20
vendor/symfony/css-selector/Node/ClassNode.php
vendored
@@ -26,18 +26,28 @@ class ClassNode extends AbstractNode
|
||||
private $selector;
|
||||
private $name;
|
||||
|
||||
public function __construct(NodeInterface $selector, string $name)
|
||||
/**
|
||||
* @param NodeInterface $selector
|
||||
* @param string $name
|
||||
*/
|
||||
public function __construct(NodeInterface $selector, $name)
|
||||
{
|
||||
$this->selector = $selector;
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function getSelector(): NodeInterface
|
||||
/**
|
||||
* @return NodeInterface
|
||||
*/
|
||||
public function getSelector()
|
||||
{
|
||||
return $this->selector;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
@@ -45,7 +55,7 @@ class ClassNode extends AbstractNode
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getSpecificity(): Specificity
|
||||
public function getSpecificity()
|
||||
{
|
||||
return $this->selector->getSpecificity()->plus(new Specificity(0, 1, 0));
|
||||
}
|
||||
@@ -53,7 +63,7 @@ class ClassNode extends AbstractNode
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function __toString(): string
|
||||
public function __toString()
|
||||
{
|
||||
return sprintf('%s[%s.%s]', $this->getNodeName(), $this->selector, $this->name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user