protected function callProxyGetters(string $name, $result = null)
    {
        if ($this->getMiddlewareGroup(Caller::TYPE_GETTER)->isNotEmpty()) {
            $middleware = $this->getMiddlewareGroup(Caller::TYPE_GETTER);
            $arguments = [$name];
            $result = $this->callMiddleware($middleware, "get", $arguments, Caller::TYPE_GETTER, $result);

        } elseif ($this->magicMethodsFallbackLocally && property_exists($this, $name)) {
            $result = $this->getAttribute($name);
        }
        return $result;
    }
protected function callProxyGetters(string $name, $result = null)
    {
        if ($this->getMiddlewareGroup(Caller::TYPE_GETTER)->isNotEmpty()) {
            $middleware = $this->getMiddlewareGroup(Caller::TYPE_GETTER);
            $arguments = [$name];
            $result = $this->callMiddleware($middleware, "get", $arguments, Caller::TYPE_GETTER, $result);

        } elseif ($this->magicMethodsFallbackLocally && property_exists($this, $name)) {
            $result = $this->getAttribute($name);
        }
        return $result;
    }
protected function callProxyGetters ( string $ name , $ result = null ) { if ( $ this -> getMiddlewareGroup ( Caller :: TYPE_GETTER ) -> isNotEmpty ( ) ) { $ middleware = $ this -> getMiddlewareGroup ( Caller :: TYPE_GETTER ) ; $ arguments = [ $ name ] ; $ result = $ this -> callMiddleware ( $ middleware , "get" , $ arguments , Caller :: TYPE_GETTER , $ result ) ; } elseif ( $ this -> magicMethodsFallbackLocally && property_exists ( $ this , $ name ) ) { $ result = $ this -> getAttribute ( $ name ) ; } return $ result ; }
Call the registered middleware getters.

@throws \MichaelRShelton\MiddleMan\Exceptions\HaltPropagationException if requested

@param string $name
@param mixed $result
@return bool
Call the registered middleware getters .