src/ClassGeneration/Method.php
public static function createFromReflection(\ReflectionMethod $reflected)
    {
        $method = new self();
        $method->setName($reflected->getName());

        foreach ($reflected->getParameters() as $parameterReflected) {
            $argument = new Argument();
            $argument->setName($parameterReflected->getName());
            $method->addArgument($argument);
        }

        return $method;
    }
public static function createFromReflection(\ReflectionMethod $reflected)
    {
        $method = new self();
        $method->setName($reflected->getName());

        foreach ($reflected->getParameters() as $parameterReflected) {
            $argument = new Argument();
            $argument->setName($parameterReflected->getName());
            $method->addArgument($argument);
        }

        return $method;
    }
public static function createFromReflection ( \ ReflectionMethod $ reflected ) { $ method = new self ( ) ; $ method -> setName ( $ reflected -> getName ( ) ) ; foreach ( $ reflected -> getParameters ( ) as $ parameterReflected ) { $ argument = new Argument ( ) ; $ argument -> setName ( $ parameterReflected -> getName ( ) ) ; $ method -> addArgument ( $ argument ) ; } return $ method ; }
Creates a method from Reflection Method.

@param \ReflectionMethod $reflected

@return Method
Creates a method from Reflection Method .