Inheritance: extends AbstractModel
 /**
  * @return MethodContainer
  */
 public static function instance()
 {
     $service = ServiceTest::instance('Bar');
     $methodContainer = new MethodContainer(self::getBingGeneratorInstance());
     $methodContainer->add(new Method(self::getBingGeneratorInstance(), 'Foo', 'string', 'int', $service));
     $methodContainer->add(new Method(self::getBingGeneratorInstance(), 'Bar', 'string', 'int', $service));
     $methodContainer->add(new Method(self::getBingGeneratorInstance(), 'FooBar', array('string', 'int', 'int'), 'int', $service));
     return $methodContainer;
 }
Ejemplo n.º 2
0
 /**
  * Returns the method by its original name
  * @uses Service::getMethods()
  * @uses AbstractModel::getName()
  * @param string $methodName the original method name
  * @return Method|null
  */
 public function getMethod($methodName)
 {
     return $this->methods->getMethodByName($methodName);
 }