BeSimpleSoap/ServiceDefinition/Annotation/Method.php

33 lines
750 B
PHP
Raw Normal View History

2011-04-09 00:40:31 +02:00
<?php
/*
* This file is part of the WebServiceBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Bundle\WebServiceBundle\ServiceDefinition\Annotation;
class Method
{
private $name;
private $service;
2011-07-14 17:45:03 +02:00
2011-04-09 00:40:31 +02:00
public function __construct($values)
{
$this->name = isset($values['value']) ? $values['value'] : null;
$this->service = isset($values['service']) ? $values['service'] : null;
}
2011-07-14 17:45:03 +02:00
2011-04-09 00:40:31 +02:00
public function getName($default = null)
{
return $this->name !== null ? $this->name : $default;
}
2011-07-14 17:45:03 +02:00
2011-04-09 00:40:31 +02:00
public function getService()
{
return $this->service;
}
}