src/Eloquent/Typhoon/ClassMapper/ClassDefinition.php
public function method($name)
    {
        $this->typeCheck->method(func_get_args());

        foreach ($this->methods() as $method) {
            if ($method->name() === $name) {
                return $method;
            }
        }

        throw new Exception\UndefinedMethodException($this->className(), $name);
    }
public function method($name)
    {
        $this->typeCheck->method(func_get_args());

        foreach ($this->methods() as $method) {
            if ($method->name() === $name) {
                return $method;
            }
        }

        throw new Exception\UndefinedMethodException($this->className(), $name);
    }
public function method ( $ name ) { $ this -> typeCheck -> method ( func_get_args ( ) ) ; foreach ( $ this -> methods ( ) as $ method ) { if ( $ method -> name ( ) === $ name ) { return $ method ; } } throw new Exception \ UndefinedMethodException ( $ this -> className ( ) , $ name ) ; }
@param string $name

@return MethodDefinition
@param string $name