protected function containsObject($subject)
    {
        if (is_object($subject)) {
            return true;
        }
        if (!is_array($subject)) {
            return false;
        }
        foreach ($subject as $value) {
            if ($this->containsObject($value)) {
                return true;
            }
        }
        return false;
    }
protected function containsObject($subject)
    {
        if (is_object($subject)) {
            return true;
        }
        if (!is_array($subject)) {
            return false;
        }
        foreach ($subject as $value) {
            if ($this->containsObject($value)) {
                return true;
            }
        }
        return false;
    }
protected function containsObject ( $ subject ) { if ( is_object ( $ subject ) ) { return true ; } if ( ! is_array ( $ subject ) ) { return false ; } foreach ( $ subject as $ value ) { if ( $ this -> containsObject ( $ value ) ) { return true ; } } return false ; }
Checks if the given subject contains an object

@param mixed $subject
@return boolean If it contains an object or not
Checks if the given subject contains an object