protected function transformContainers(array $items)
    {
        if (!count($items)) {
            return [];
        }

        $containers = [];

        foreach ($items as $item) {
            $container = new Container($this->api, $this->uploader, $item['name'], $item);
            $containers[$container->name()] = $container;
        }

        return $containers;
    }
protected function transformContainers(array $items)
    {
        if (!count($items)) {
            return [];
        }

        $containers = [];

        foreach ($items as $item) {
            $container = new Container($this->api, $this->uploader, $item['name'], $item);
            $containers[$container->name()] = $container;
        }

        return $containers;
    }
protected function transformContainers ( array $ items ) { if ( ! count ( $ items ) ) { return [ ] ; } $ containers = [ ] ; foreach ( $ items as $ item ) { $ container = new Container ( $ this -> api , $ this -> uploader , $ item [ 'name' ] , $ item ) ; $ containers [ $ container -> name ( ) ] = $ container ; } return $ containers ; }
Transforms containers response to Container objects.

@param array $items

@return array
Transforms containers response to Container objects .