2010-10-07 15:16:56 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Bundle\WebServiceBundle\ServiceDefinition;
|
|
|
|
|
2010-10-08 14:24:42 +02:00
|
|
|
use Bundle\WebServiceBundle\Util\Collection;
|
|
|
|
|
|
|
|
class Method
|
2010-10-07 15:16:56 +02:00
|
|
|
{
|
|
|
|
private $name;
|
|
|
|
private $controller;
|
2010-10-08 14:24:42 +02:00
|
|
|
private $arguments;
|
2010-10-07 15:16:56 +02:00
|
|
|
|
2010-10-08 14:24:42 +02:00
|
|
|
public function __construct($name = null, $controller = null, array $arguments = array())
|
2010-10-07 15:16:56 +02:00
|
|
|
{
|
|
|
|
$this->setName($name);
|
|
|
|
$this->setController($controller);
|
2010-10-08 14:24:42 +02:00
|
|
|
$this->setArguments($arguments);
|
2010-10-07 15:16:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getName()
|
|
|
|
{
|
|
|
|
return $this->name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setName($name)
|
|
|
|
{
|
|
|
|
$this->name = $name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getController()
|
|
|
|
{
|
|
|
|
return $this->controller;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setController($controller)
|
|
|
|
{
|
|
|
|
$this->controller = $controller;
|
|
|
|
}
|
2010-10-08 14:24:42 +02:00
|
|
|
|
|
|
|
public function getArguments()
|
|
|
|
{
|
|
|
|
return $this->arguments;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setArguments($arguments)
|
|
|
|
{
|
|
|
|
$this->arguments = new Collection('getName');
|
|
|
|
$this->arguments->addAll($arguments);
|
|
|
|
}
|
2010-10-07 15:16:56 +02:00
|
|
|
}
|