added namespace to service definition;
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user