Lines Matching refs:value
74 * Get the value that it should start with.
84 * Set the value it should start with.
86 * @param null|string $value
89 public function setStartsWith(?string $value)
91 $this->startsWith = $value;
97 * Get the value it should end with.
107 * Set the value it should end with.
109 * @param null|string $value
112 public function setEndsWith(?string $value)
114 $this->endsWith = $value;
148 throw new RuntimeException('You must provide a contains, starts with, or ends with value to the substring filter.');
177 $value = '';
179 $value = array_map(function ($value) {
180 return Attribute::escape($value);
182 $value = '*' . implode('*', $value) . '*';
186 $value = ($value === '' ? $startsWith . '*' : $startsWith) . $value;
190 $value = $value . ($value === '' ? '*' . $endsWith : $endsWith);
193 return $filter . $value . self::PAREN_RIGHT;