private function getRendererDebugMessage($object, string $context = null): string
    {
        $debugMessage = '';

        $this->initRenderersList();

        do {
            foreach ($this->customRenderers as $renderer) {
                /* @var $renderer ChainableRendererInterface */

                $debugMessage .= $renderer->debugCanRender($object, $context);
                $result = $renderer->canRender($object, $context);
                if ($result === ChainableRendererInterface::CAN_RENDER_OBJECT || $result === ChainableRendererInterface::CAN_RENDER_CLASS) {
                    break 2;
                }
            }

            /* @var $renderer ChainableRendererInterface */
            if ($this->templateRenderer) {
                $debugMessage .= $this->templateRenderer->debugCanRender($object, $context);
                $result = $this->templateRenderer->canRender($object, $context);
                if ($result === ChainableRendererInterface::CAN_RENDER_OBJECT || $result === ChainableRendererInterface::CAN_RENDER_CLASS) {
                    break;
                }
            }

            foreach ($this->packageRenderers as $renderer) {
                /* @var $renderer ChainableRendererInterface */

                $debugMessage .= $renderer->debugCanRender($object, $context);
                $result = $renderer->canRender($object, $context);
                if ($result === ChainableRendererInterface::CAN_RENDER_OBJECT || $result === ChainableRendererInterface::CAN_RENDER_CLASS) {
                    break 2;
                }
            }
        } while (false);
        
        return $debugMessage;
    }
private function getRendererDebugMessage($object, string $context = null): string
    {
        $debugMessage = '';

        $this->initRenderersList();

        do {
            foreach ($this->customRenderers as $renderer) {
                /* @var $renderer ChainableRendererInterface */

                $debugMessage .= $renderer->debugCanRender($object, $context);
                $result = $renderer->canRender($object, $context);
                if ($result === ChainableRendererInterface::CAN_RENDER_OBJECT || $result === ChainableRendererInterface::CAN_RENDER_CLASS) {
                    break 2;
                }
            }

            /* @var $renderer ChainableRendererInterface */
            if ($this->templateRenderer) {
                $debugMessage .= $this->templateRenderer->debugCanRender($object, $context);
                $result = $this->templateRenderer->canRender($object, $context);
                if ($result === ChainableRendererInterface::CAN_RENDER_OBJECT || $result === ChainableRendererInterface::CAN_RENDER_CLASS) {
                    break;
                }
            }

            foreach ($this->packageRenderers as $renderer) {
                /* @var $renderer ChainableRendererInterface */

                $debugMessage .= $renderer->debugCanRender($object, $context);
                $result = $renderer->canRender($object, $context);
                if ($result === ChainableRendererInterface::CAN_RENDER_OBJECT || $result === ChainableRendererInterface::CAN_RENDER_CLASS) {
                    break 2;
                }
            }
        } while (false);
        
        return $debugMessage;
    }
private function getRendererDebugMessage ( $ object , string $ context = null ) : string { $ debugMessage = '' ; $ this -> initRenderersList ( ) ; do { foreach ( $ this -> customRenderers as $ renderer ) { /* @var $renderer ChainableRendererInterface */ $ debugMessage .= $ renderer -> debugCanRender ( $ object , $ context ) ; $ result = $ renderer -> canRender ( $ object , $ context ) ; if ( $ result === ChainableRendererInterface :: CAN_RENDER_OBJECT || $ result === ChainableRendererInterface :: CAN_RENDER_CLASS ) { break 2 ; } } /* @var $renderer ChainableRendererInterface */ if ( $ this -> templateRenderer ) { $ debugMessage .= $ this -> templateRenderer -> debugCanRender ( $ object , $ context ) ; $ result = $ this -> templateRenderer -> canRender ( $ object , $ context ) ; if ( $ result === ChainableRendererInterface :: CAN_RENDER_OBJECT || $ result === ChainableRendererInterface :: CAN_RENDER_CLASS ) { break ; } } foreach ( $ this -> packageRenderers as $ renderer ) { /* @var $renderer ChainableRendererInterface */ $ debugMessage .= $ renderer -> debugCanRender ( $ object , $ context ) ; $ result = $ renderer -> canRender ( $ object , $ context ) ; if ( $ result === ChainableRendererInterface :: CAN_RENDER_OBJECT || $ result === ChainableRendererInterface :: CAN_RENDER_CLASS ) { break 2 ; } } } while ( false ) ; return $ debugMessage ; }
Returns a string explaining the steps done to find the renderer.

@param  object $object
@param  string $context
@return string
Returns a string explaining the steps done to find the renderer .