protected function getReflectionMethodFrom($argument)
    {
        // No method name is given for targetting.
        if (is_null($this->keyName)) {
            throw new InvalidArgumentException('Method name to target is required');
        }

        // Argument is an Object.
        if (is_object($argument)) {
            $argument = get_class($argument);
        }

        // Get Reflected method of the object.
        return new ReflectionMethod($argument, $this->keyName);
    }
protected function getReflectionMethodFrom($argument)
    {
        // No method name is given for targetting.
        if (is_null($this->keyName)) {
            throw new InvalidArgumentException('Method name to target is required');
        }

        // Argument is an Object.
        if (is_object($argument)) {
            $argument = get_class($argument);
        }

        // Get Reflected method of the object.
        return new ReflectionMethod($argument, $this->keyName);
    }
protected function getReflectionMethodFrom ( $ argument ) { // No method name is given for targetting. if ( is_null ( $ this -> keyName ) ) { throw new InvalidArgumentException ( 'Method name to target is required' ) ; } // Argument is an Object. if ( is_object ( $ argument ) ) { $ argument = get_class ( $ argument ) ; } // Get Reflected method of the object. return new ReflectionMethod ( $ argument , $ this -> keyName ) ; }
Get the ReflectionMethod for a given argument.

@param mixed $argument

@return ReflectionMethod
Get the ReflectionMethod for a given argument .