added namespace to service definition;

This commit is contained in:
Christian Kerl
2011-02-03 01:04:12 +01:00
parent 79da80bdb9
commit e53b83616b
3 changed files with 48 additions and 28 deletions

View File

@ -19,6 +19,11 @@ class ServiceDefinition
*/
private $name;
/**
* @var string
*/
private $namespace;
/**
* @var \Bundle\WebServiceBundle\Util\Collection
*/
@ -29,9 +34,10 @@ class ServiceDefinition
*/
private $headers;
public function __construct($name = null, array $methods = array(), array $headers = array())
public function __construct($name = null, $namespace = null, array $methods = array(), array $headers = array())
{
$this->setName($name);
$this->setNamespace($namespace);
$this->setMethods($methods);
$this->setHeaders($headers);
}
@ -52,6 +58,22 @@ class ServiceDefinition
$this->name = $name;
}
/**
* @return string
*/
public function getNamespace()
{
return $this->namespace;
}
/**
* @param string $namespace
*/
public function setNamespace($namespace)
{
$this->namespace = $namespace;
}
/**
* @return \Bundle\WebServiceBundle\Util\Collection
*/