@param $name

@return Collection
776296
public function values($name)
    {
        return $this->map(function (EntityInterface $entity) use ($name) {
            return $entity->getByName($name);
        });
    }
370445
public function selectCollection($name, array $options = [])
    {
        if (!isset($this->collections[$name])) {
            $this->createCollection($name);
        }
        return $this->collections[$name]['collection'];
    }
175372
protected function getCollectionUpperName($name = null)
    {
        $name = str_plural($this->getResourceName($name));

        $pieces = explode('_', $name);
        $name = "";
        foreach ($pieces as $k => $str) {
            $name .= ucfirst($str);
        }

        return $name;
    }
1322355
public static function getSet(string $name): array
    {
        $obj = new RedisSet(self::handle(), $name);
        return $obj->all();
    }
1241222
public function method($name)
    {
        $method = new Method($name);
        $this->container->put($name, $method);

        return $method;
    }
555602
private function getCollection(StreamName $streamName): Collection
    {
        $collection = $this->mongoClient->selectCollection($this->dbName, $this->getCollectionName($streamName));

        return $collection;
    }
688966
public function get($name)
    {
        return isset($this->collection[$name]) ? $this->collection[$name] : null;
    }
385335
public function createCollection($name, $capped = false, $size = 0, $max = 0)
    {
        return $this->_call(
            'create_collection', array(
                'name'    => $name,
                'capped'  => $capped,
                'size'    => $size,
                'max'     => $max
            )
        );
    }
648588
public function getCollector($name)
    {
        if (!isset($this->collectors[$name])) {
            throw new DebugBarException("'$name' is not a registered collector");
        }
        return $this->collectors[$name];
    }
901197
public function getChildForName($name)
    {
        $criteria = Criteria::create()
            ->where(Criteria::expr()->eq('name', $name))
        ;

        return $this->getChildren()->matching($criteria)->first();
    }
272150
public function getAll($name)
    {
        $s = $this->getNormalizedHeaderName($name);
        $ret = [];
        if (!empty($this->headerMap[$s])) {
            foreach ($this->headerMap[$s] as $index) {
                $ret[] = $this->getByIndex($index);
            }
        }
        return $ret;
    }
485934
public function get($name)
    {
        if (isset($this->container[$name])) {
            return $this->container[$name];
        } else {
            return new Iterator([]);
        }
    }
136828
public function get(string $name): RelationshipInterface
    {
        if (!$this->has($name)) {
            throw new \InvalidArgumentException('Relationship ' . $name . ' not available');
        }

        return $this->collection[$name];
    }
1226717
public function getCollection(string $collectionName): Collection
    {
        $collectionFile = $this->getCollectionFilePath($collectionName);
        $storage = $this->factory->storage($collectionFile, $this->type);
        return $this->factory->collection($storage);
    }
815912
public function group( $name )
	{
		$name = rtrim($name, '.');
		$pref = $name . '.';
		$len = strlen($pref);
		$data = [];

		foreach( array_keys($this->items) as $key )
		{
			if( $key === $name )
			{
				$data['.'] = $this->items[$key];
			}
			else if( strlen($key) > $len && substr($key, 0, $len) === $pref )
			{
				$data[substr($key, $len)] = $this->items[$key];
			}
		}

		return new self($data);
	}
99040
public function getAll($name = null)
    {
        if (!isset($name)) {
            $headers = [];
            foreach ($this->headers as $collection) {
                $headers = array_merge($headers, $collection);
            }

            return $headers;
        }

        $lowerName = strtolower($name);
        if (!array_key_exists($lowerName, $this->headers)) {
            return [];
        }

        return $this->headers[$lowerName];
    }
906213
public function create($name){
        $this->menuCollection[$name] = new MenuCollection;
        $this->menuCollection[$name]->setName($name);

        return $this->menuCollection[$name];
    }