public static function method(
            $returnsReference,
            $accessModifier,
            $polymorphModifier,
            $isStatic,
            $name,
            array $parameterExpressions
    ) {
        return new self(
                self::TYPE_METHOD,
                $returnsReference,
                $accessModifier,
                $polymorphModifier,
                $isStatic,
                $name,
                $parameterExpressions,
                null);
    }
public static function method(
            $returnsReference,
            $accessModifier,
            $polymorphModifier,
            $isStatic,
            $name,
            array $parameterExpressions
    ) {
        return new self(
                self::TYPE_METHOD,
                $returnsReference,
                $accessModifier,
                $polymorphModifier,
                $isStatic,
                $name,
                $parameterExpressions,
                null);
    }
public static function method ( $ returnsReference , $ accessModifier , $ polymorphModifier , $ isStatic , $ name , array $ parameterExpressions ) { return new self ( self :: TYPE_METHOD , $ returnsReference , $ accessModifier , $ polymorphModifier , $ isStatic , $ name , $ parameterExpressions , null ) ; }
Creates a method signature with the supplied parameters.

@param boolean                 $returnsReference
@param int|null                $accessModifier
@param int|null                $polymorphModifier
@param boolean                 $isStatic
@param string                  $name
@param O\ParameterExpression[] $parameterExpressions

@return self
Creates a method signature with the supplied parameters .