src/Headzoo/Core/Objects.php
public static function isObject($obj)
    {
        if (is_object($obj)) {
            $is_object = true;
        } else if (is_array($obj)) {
            $reduced = array_filter($obj, function($o) {
                    return is_object($o);
                });
            $is_object = count($reduced) == count($obj);
        } else {
            $is_object = false;
        }

        return $is_object;
    }
public static function isObject($obj)
    {
        if (is_object($obj)) {
            $is_object = true;
        } else if (is_array($obj)) {
            $reduced = array_filter($obj, function($o) {
                    return is_object($o);
                });
            $is_object = count($reduced) == count($obj);
        } else {
            $is_object = false;
        }

        return $is_object;
    }
public static function isObject ( $ obj ) { if ( is_object ( $ obj ) ) { $ is_object = true ; } else if ( is_array ( $ obj ) ) { $ reduced = array_filter ( $ obj , function ( $ o ) { return is_object ( $ o ) ; } ) ; $ is_object = count ( $ reduced ) == count ( $ obj ) ; } else { $ is_object = false ; } return $ is_object ; }
Returns whether a value is an object, or array of objects

Returns a boolean value indicating whether the $obj argument is an object, or an array of nothing
but objects. Returns false when $obj is neither an object nor array.

Examples:
```php
$obj = new stdClass();
$is = Objects::isObject($obj);
var_dump($is);

// Outputs: bool(true)

$objs = [
new stdClass(),
new Headzoo\Core\Strings()
];
$is = Objects::isObject($objs);
var_dump($is);

// Outputs: bool(true)

$is = Objects::isObject('stdClass');
var_dump($is);

// Outputs: bool(false)

$objs = [
new stdClass(),
'Headzoo\Core\Strings'
];
$is = Objects::isObject($objs);
var_dump($is);

// Outputs: bool(false)
```

@param  object|array $obj The object or array of objects to test
@return bool
Returns whether a value is an object or array of objects