public function execute($target, string $method, array $params)
    {
        $class = \get_class($target);

        // If doesn't have any advices, then execute the origin method
        if (!isset($this->map[$class][$method]) || empty($this->map[$class][$method])) {
            return $target->$method(...$params);
        }

        // Apply advices's functionality
        $advices = $this->map[$class][$method];
        return $this->doAdvice($target, $method, $params, $advices);
    }
public function execute($target, string $method, array $params)
    {
        $class = \get_class($target);

        // If doesn't have any advices, then execute the origin method
        if (!isset($this->map[$class][$method]) || empty($this->map[$class][$method])) {
            return $target->$method(...$params);
        }

        // Apply advices's functionality
        $advices = $this->map[$class][$method];
        return $this->doAdvice($target, $method, $params, $advices);
    }
public function execute ( $ target , string $ method , array $ params ) { $ class = \ get_class ( $ target ) ; // If doesn't have any advices, then execute the origin method if ( ! isset ( $ this -> map [ $ class ] [ $ method ] ) || empty ( $ this -> map [ $ class ] [ $ method ] ) ) { return $ target -> $ method ( ... $ params ) ; } // Apply advices's functionality $ advices = $ this -> map [ $ class ] [ $ method ] ; return $ this -> doAdvice ( $ target , $ method , $ params , $ advices ) ; }
Execute origin method by aop

@param object $target Origin object
@param string $method The execution method
@param array $params The parameters of execution method
@return mixed
@throws \ReflectionException
@throws Throwable
Execute origin method by aop