conditions[] = $condition; return $this; } /** * Converts the expression to a string that can be sent to the IMAP server. */ public function toString(): string { $conditions = \array_map(static function (ConditionInterface $condition): string { return $condition->toString(); }, $this->conditions); return \implode(' ', $conditions); } }