public static function convertComponentToArray(IOpenStackComponent $component) { $res = array(); $res['id'] = $component->getIdentifier(); $res['name'] = $component->getName(); $res['code_name'] = $component->getCodeName(); $res['description'] = $component->getDescription(); return $res; }
public function __construct(IOpenStackRelease $release, IOpenStackComponent $component) { $message = sprintf('Release %s does not support Component %s', $release->getName(), $component->getCodeName()); parent::__construct($message); }