private function encapsulate($entities)
	{
		$items = [];

		foreach ($entities as $entity)
		{
			$items[] = Entity::fromMetadata($entity, $this);
		}

		return new Collection($items);
	}
private function encapsulate($entities)
	{
		$items = [];

		foreach ($entities as $entity)
		{
			$items[] = Entity::fromMetadata($entity, $this);
		}

		return new Collection($items);
	}
private function encapsulate ( $ entities ) { $ items = [ ] ; foreach ( $ entities as $ entity ) { $ items [ ] = Entity :: fromMetadata ( $ entity , $ this ) ; } return new Collection ( $ items ) ; }
Encapsulates the entities list in their appropriate classes and returns as part of a collection

@param   array  $entities  The filesystem contents
@return  \Hubzero\Filesystem\Collection
Encapsulates the entities list in their appropriate classes and returns as part of a collection