src/Mutator/Mutator.php
protected function parseClassMethod($userCallable)
    {
        list($class) = explode('@', $userCallable);

        $callable = str_replace('@', '::', $userCallable);

        try {
            $method = new ReflectionMethod($callable);

            $class = new ReflectionClass($class);
        } catch (ReflectionException $e) {
            throw new InvalidCallableException($e->getMessage());
        }

        return ($method->isStatic()) ? $callable : $this->getInstanceMethod($class, $method);
    }
protected function parseClassMethod($userCallable)
    {
        list($class) = explode('@', $userCallable);

        $callable = str_replace('@', '::', $userCallable);

        try {
            $method = new ReflectionMethod($callable);

            $class = new ReflectionClass($class);
        } catch (ReflectionException $e) {
            throw new InvalidCallableException($e->getMessage());
        }

        return ($method->isStatic()) ? $callable : $this->getInstanceMethod($class, $method);
    }
protected function parseClassMethod ( $ userCallable ) { list ( $ class ) = explode ( '@' , $ userCallable ) ; $ callable = str_replace ( '@' , '::' , $ userCallable ) ; try { $ method = new ReflectionMethod ( $ callable ) ; $ class = new ReflectionClass ( $ class ) ; } catch ( ReflectionException $ e ) { throw new InvalidCallableException ( $ e -> getMessage ( ) ) ; } return ( $ method -> isStatic ( ) ) ? $ callable : $ this -> getInstanceMethod ( $ class , $ method ) ; }
Extract and validate class method.

@param  string   $userCallable
@return callable

@throws \Sofa\Eloquence\Mutator\InvalidCallableException
Extract and validate class method .