util/PropertyAccessor.php
public static function getSafeCollectionProperty(\stdClass $object, ...$properties)
    {
        $property = self::getSafeProperty($object, ...$properties);
        if ($property === null || !is_array($property)) {
            return [];
        }
        return $property;
    }
public static function getSafeCollectionProperty(\stdClass $object, ...$properties)
    {
        $property = self::getSafeProperty($object, ...$properties);
        if ($property === null || !is_array($property)) {
            return [];
        }
        return $property;
    }
public static function getSafeCollectionProperty ( \ stdClass $ object , ... $ properties ) { $ property = self :: getSafeProperty ( $ object , ... $ properties ) ; if ( $ property === null || ! is_array ( $ property ) ) { return [ ] ; } return $ property ; }
Returns a collection of objects for the given property map.
@param \stdClass $object
@param array ...$properties
@return array
Returns a collection of objects for the given property map .