2 declare(strict_types = 1);
40 public static function create($parentSet =
null): self
42 if (!$parentSet instanceof
static) {
45 return clone $parentSet;
80 throw new \LogicException(
81 sprintf(
'Got %dx %s, expected one', count(
$applicables), $type),
98 $target = clone $this;
100 if (!in_array($applicable, $this->applicables ?? [],
true)) {
101 $target->applicables[] = $applicable;
109 $target = clone $this;
116 $target = clone $this;
123 $target = clone $this;
130 $target = clone $this;
137 $descriptions = array_map(
143 return 'pid: ' . $this->targetPageId .
' | ' . implode(
' | ', $descriptions);
153 foreach ($this->applicables as $applicable) {
154 if (is_a($applicable, $type)) {
156 } elseif ($applicable instanceof ApplicableConjunction) {