public static function fromResources(ResourceInterface ...$resources) {
		$collectionDocument = new self();
		
		foreach ($resources as $resource) {
			$collectionDocument->addResource($resource);
		}
		
		return $collectionDocument;
	}
public static function fromResources(ResourceInterface ...$resources) {
		$collectionDocument = new self();
		
		foreach ($resources as $resource) {
			$collectionDocument->addResource($resource);
		}
		
		return $collectionDocument;
	}
public static function fromResources ( ResourceInterface ... $ resources ) { $ collectionDocument = new self ( ) ; foreach ( $ resources as $ resource ) { $ collectionDocument -> addResource ( $ resource ) ; } return $ collectionDocument ; }
generate a CollectionDocument from one or multiple resources

adds included resources if found inside the resource's relationships, use {@see ->addResource()} to change that behavior

@param  ResourceInterface ...$resources
@return CollectionDocument
generate a CollectionDocument from one or multiple resources