public function __toString() { if ($this->count() === 1) { return (string) $this->parts[0]; } return '(' . implode(') ' . $this->type . ' (', $this->parts) . ')'; }
/** * Retrieves the string representation of this composite expression. * * @return string */ public function __toString() { if ($this->count() === 0) { return ''; } return parent::__toString(); }