openstackweb/marketplace/code/infrastructure/factories/OpenStackImplementationDraftFactory.php
santipalenque 073cd5cd19 [spalenque] - #6968 *WIP
Conflicts:

	marketplace/_config.php
	marketplace/code/interfaces/restfull_api/marketplace/ConsultantsCrudApi.php
	marketplace/templates/Layout/Includes/MarketPlaceAdminPage_implementations_list.ss
2014-11-26 16:30:17 -03:00

22 lines
878 B
PHP

<?php
abstract class OpenStackImplementationDraftFactory
extends RegionalSupportedCompanyServiceDraftFactory
implements IOpenStackImplementationFactory {
/**
* @param int $coverage_percent
* @param IReleaseSupportedApiVersion $release_supported_api_version
* @param IOpenStackImplementation $implementation
* @return IOpenStackImplementationApiCoverage
*/
public function buildCapability($coverage_percent, IReleaseSupportedApiVersion $release_supported_api_version, IOpenStackImplementation $implementation)
{
$capability = new OpenStackImplementationApiCoverageDraft;
$capability->setCoveragePercent($coverage_percent);
$capability->setReleaseSupportedApiVersion($release_supported_api_version);
$capability->setImplementation($implementation);
return $capability;
}
}