final public static function allOfType(array $expressions, $type, $allowNull = false)
    {
        foreach ($expressions as $expression) {
            if ($expression instanceof $type || $expression === null && $allowNull) {
                continue;
            }

            return false;
        }

        return true;
    }
final public static function allOfType(array $expressions, $type, $allowNull = false)
    {
        foreach ($expressions as $expression) {
            if ($expression instanceof $type || $expression === null && $allowNull) {
                continue;
            }

            return false;
        }

        return true;
    }
final public static function allOfType ( array $ expressions , $ type , $ allowNull = false ) { foreach ( $ expressions as $ expression ) { if ( $ expression instanceof $ type || $ expression === null && $ allowNull ) { continue ; } return false ; } return true ; }
Returns whether the expressions are all of the supplied type.

@param Expression[] $expressions
@param string       $type
@param boolean      $allowNull

@return boolean
Returns whether the expressions are all of the supplied type .