displayNameFieldName)) { return $query; } return $query->where($this->displayNameFieldName, "like", "{$value}%"); } public function getDisplayNameFieldName(): string { return $this->displayNameFieldName; } public function displayNameFieldName(string $name): self { $this->displayNameFieldName = $name; return $this; } }