__toString() public method

Retrieves the string representation of this composite expression.
public __toString ( ) : string
return string
コード例 #1
0
 /**
  * Retrieves the string representation of this composite expression.
  *
  * @return string
  */
 public function __toString()
 {
     if ($this->count() === 0) {
         return '';
     }
     return parent::__toString();
 }
コード例 #2
0
ファイル: Filter.php プロジェクト: bolt/bolt
 /**
  * Gets the compiled expression as a string. This will look
  * something like `(alias.key = :placeholder)`.
  *
  * @return string
  */
 public function getExpression()
 {
     return $this->expression->__toString();
 }