示例#1
0
 /**
  * @param string $className
  * @param string $methodName
  * @param Factory $factory <-
  */
 public function __construct($className, $methodName, Factory $factory)
 {
     parent::__construct(self::asClass($className, $methodName), $factory);
     $this->method = new \ReflectionMethod($className, $methodName);
     $this->createClassDefinition();
     $this->setName(ucfirst(preg_replace('/([a-z])([A-Z])/', '$1 $2', $this->method->getShortName())));
 }