/** * @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; }
/** * 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); }