updated dependencies + working api connection

This commit is contained in:
Chris
2018-02-08 14:21:29 +00:00
parent dfc3c2194c
commit 30aea8e361
216 changed files with 21763 additions and 915 deletions

View File

@@ -27,24 +27,38 @@ class CombinedSelectorNode extends AbstractNode
private $combinator;
private $subSelector;
public function __construct(NodeInterface $selector, string $combinator, NodeInterface $subSelector)
/**
* @param NodeInterface $selector
* @param string $combinator
* @param NodeInterface $subSelector
*/
public function __construct(NodeInterface $selector, $combinator, NodeInterface $subSelector)
{
$this->selector = $selector;
$this->combinator = $combinator;
$this->subSelector = $subSelector;
}
public function getSelector(): NodeInterface
/**
* @return NodeInterface
*/
public function getSelector()
{
return $this->selector;
}
public function getCombinator(): string
/**
* @return string
*/
public function getCombinator()
{
return $this->combinator;
}
public function getSubSelector(): NodeInterface
/**
* @return NodeInterface
*/
public function getSubSelector()
{
return $this->subSelector;
}
@@ -52,7 +66,7 @@ class CombinedSelectorNode extends AbstractNode
/**
* {@inheritdoc}
*/
public function getSpecificity(): Specificity
public function getSpecificity()
{
return $this->selector->getSpecificity()->plus($this->subSelector->getSpecificity());
}
@@ -60,7 +74,7 @@ class CombinedSelectorNode extends AbstractNode
/**
* {@inheritdoc}
*/
public function __toString(): string
public function __toString()
{
$combinator = ' ' === $this->combinator ? '<followed>' : $this->combinator;