Lines Matching refs:attribute

192         $attribute = substr(
203 if ($attribute === '') {
205 'The attribute is missing in the filter near position %s.',
210 return [$endAt, $this->getComparisonFilterObject((string) $filterType, $attribute, $value)];
277 * @param string $attribute
283 protected function getComparisonFilterObject(string $operator, string $attribute, string $value): FilterInterface
286 return Filters::lessThanOrEqual($attribute, $this->unescapeValue($value));
288 return Filters::greaterThanOrEqual($attribute, $this->unescapeValue($value));
290 return Filters::approximate($attribute, $this->unescapeValue($value));
292 return $this->getMatchingRuleFilterObject($attribute, $this->unescapeValue($value));
296 return Filters::present($attribute);
300 return $this->getSubstringFilterObject($attribute, $value);
302 return Filters::equal($attribute, $this->unescapeValue($value));
307 * @param string $attribute
312 protected function getMatchingRuleFilterObject(string $attribute, string $value): MatchingRuleFilter
314 if (preg_match(self::MATCHING_RULE, $attribute, $matches) === 0) {
315 throw new FilterParseException(sprintf('The matching rule is not valid: %s', $attribute));
326 'If the matching rule is absent the attribute type must be present, but it is not: %s',
327 $attribute
343 * @param string $attribute
348 protected function getSubstringFilterObject(string $attribute, string $value): SubstringFilter
350 $filter = new SubstringFilter($attribute);
354 'Unable to parse the substring filter for attribute %s.',
355 $attribute