lib/Doctrine/DBAL/Query/Expression/CompositeExpression.php
public function add($part)
    {
        if (empty($part)) {
            return $this;
        }

        if ($part instanceof self && count($part) === 0) {
            return $this;
        }

        $this->parts[] = $part;

        return $this;
    }
public function add($part)
    {
        if (empty($part)) {
            return $this;
        }

        if ($part instanceof self && count($part) === 0) {
            return $this;
        }

        $this->parts[] = $part;

        return $this;
    }
public function add ( $ part ) { if ( empty ( $ part ) ) { return $ this ; } if ( $ part instanceof self && count ( $ part ) === 0 ) { return $ this ; } $ this -> parts [ ] = $ part ; return $ this ; }
Adds an expression to composite expression.

@param mixed $part

@return \Doctrine\DBAL\Query\Expression\CompositeExpression
Adds an expression to composite expression .