The bundle is back!

The definition of service has changed, read the README.
This commit is contained in:
Francis Besset
2011-07-17 10:46:54 +02:00
parent 81118f8d47
commit 1c608ccf20
48 changed files with 641 additions and 535 deletions

View File

@ -19,12 +19,15 @@ class Method
private $arguments;
private $return;
public function __construct($name = null, $controller = null, array $arguments = array(), $return = null)
public function __construct($name = null, $controller = null, array $arguments = array(), Type $return = null)
{
$this->setName($name);
$this->setController($controller);
$this->setArguments($arguments);
$this->setReturn($return);
if ($return) {
$this->setReturn($return);
}
}
public function getName()
@ -52,9 +55,9 @@ class Method
return $this->arguments;
}
public function setArguments($arguments)
public function setArguments(array $arguments)
{
$this->arguments = new Collection('getName');
$this->arguments = new Collection('getName', 'Bundle\WebServiceBundle\ServiceDefinition\Argument');
$this->arguments->addAll($arguments);
}
@ -63,7 +66,7 @@ class Method
return $this->return;
}
public function setReturn($return)
public function setReturn(Type $return)
{
$this->return = $return;
}