hasSelect() && in_array($field, $this->select); } public function hasSelect(): bool { return $this->select !== null; } public function getSelect(): ?array { return $this->select; } public function withSelect(?array $select): self { $obj = clone $this; $obj->select = $select; return $obj; } public static function fromNothing(): self { return new self(); } }