__toString() public method

Retrieves the string representation of this composite expression.
public __toString ( ) : string
return string
 /**
  * Retrieves the string representation of this composite expression.
  *
  * @return string
  */
 public function __toString()
 {
     if ($this->count() === 0) {
         return '';
     }
     return parent::__toString();
 }
Beispiel #2
0
 /**
  * Gets the compiled expression as a string. This will look
  * something like `(alias.key = :placeholder)`.
  *
  * @return string
  */
 public function getExpression()
 {
     return $this->expression->__toString();
 }