private function addObjects($objects, &$container)
    {
        if (!is_array($objects))
        {
            $objects = [$objects];
        }
        foreach ($objects as $object)
        {
            if ($object->getObjectId() == null)
            {
                $container['null'][] = $object;
            } else
            {
                $container[$object->getObjectID()] = $object;
            }
        }
    }
private function addObjects($objects, &$container)
    {
        if (!is_array($objects))
        {
            $objects = [$objects];
        }
        foreach ($objects as $object)
        {
            if ($object->getObjectId() == null)
            {
                $container['null'][] = $object;
            } else
            {
                $container[$object->getObjectID()] = $object;
            }
        }
    }
private function addObjects ( $ objects , & $ container ) { if ( ! is_array ( $ objects ) ) { $ objects = [ $ objects ] ; } foreach ( $ objects as $ object ) { if ( $ object -> getObjectId ( ) == null ) { $ container [ 'null' ] [ ] = $ object ; } else { $ container [ $ object -> getObjectID ( ) ] = $ object ; } } }
Adds an object or array of objects to the array, replacing any
existing instance of the same object.

@param array $objects Array of AVObjects to add.
@param array $container Array to contain new AVObjects.
Adds an object or array of objects to the array replacing any existing instance of the same object .