public function mediator(array $parameters)
    {
        $caller = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)[1]['function'];

        if ($this->shouldCache()) {
            return $this->mediator->cache($caller, $parameters);
        }

        return $this->mediator->database($caller, $parameters);
    }
public function mediator(array $parameters)
    {
        $caller = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)[1]['function'];

        if ($this->shouldCache()) {
            return $this->mediator->cache($caller, $parameters);
        }

        return $this->mediator->database($caller, $parameters);
    }
public function mediator ( array $ parameters ) { $ caller = debug_backtrace ( DEBUG_BACKTRACE_IGNORE_ARGS , 2 ) [ 1 ] [ 'function' ] ; if ( $ this -> shouldCache ( ) ) { return $ this -> mediator -> cache ( $ caller , $ parameters ) ; } return $ this -> mediator -> database ( $ caller , $ parameters ) ; }
Call an action on mediator.

@param array $parameters

@return mixed
Call an action on mediator .