Lines Matching refs:isRoot
77 * @param bool $isRoot
82 protected function parseFilterString(int $startAt, bool $isRoot = false): array
85 [$endsAt, $filter] = $this->parseFilterContainer($startAt, $isRoot);
87 [$endsAt, $filter] = $this->parseComparisonFilter($startAt, $isRoot);
89 if ($isRoot && $endsAt !== $this->length) {
122 * @param bool $isRoot
127 protected function parseFilterContainer(int $startAt, bool $isRoot): array
132 $this->depth += $isRoot ? 0 : 1;
160 * @param bool $isRoot
165 protected function parseComparisonFilter(int $startAt, bool $isRoot = false): array
167 $parenthesis = $this->validateComparisonFilter($startAt, $isRoot);
168 $endAt = !$parenthesis && $isRoot ? $this->length : $this->nextClosingParenthesis($startAt) + 1;
217 * @param bool $isRoot
221 protected function validateComparisonFilter(int $startAt, bool $isRoot): bool
226 if ($isRoot && !$this->startsWith(FilterInterface::PAREN_LEFT, $startAt)) {
237 } elseif (!$isRoot && !$this->startsWith(FilterInterface::PAREN_LEFT, $startAt)) {