[SoapBundle] Updated ComplexType strategy

This commit is contained in:
Francis Besset
2013-07-22 15:51:45 +02:00
parent be1e80799c
commit 04a94bbbe4
2 changed files with 48 additions and 22 deletions

View File

@ -128,13 +128,24 @@ class ServiceDefinition
$this->classmap = $classmap;
}
public function hasDefinitionComplexType($type)
{
return isset($this->complexTypes[$type]);
}
public function addDefinitionComplexType($type, Collection $complexType)
{
if ($this->hasDefinitionComplexType($type)) {
return false;
}
$this->complexTypes[$type] = $complexType;
return true;
}
public function getDefinitionComplexTypes()
{
return $this->complexTypes;
}
}
}