src/Core/View/Traits/LayoutRenderableTrait.php
public function setRenderer($renderer)
    {
        $this->renderer = $renderer instanceof AbstractRenderer ?: $this->getRendererManager()->getRenderer((string) $renderer);

        return $this;
    }
public function setRenderer($renderer)
    {
        $this->renderer = $renderer instanceof AbstractRenderer ?: $this->getRendererManager()->getRenderer((string) $renderer);

        return $this;
    }
public function setRenderer ( $ renderer ) { $ this -> renderer = $ renderer instanceof AbstractRenderer ? : $ this -> getRendererManager ( ) -> getRenderer ( ( string ) $ renderer ) ; return $ this ; }
Method to set property renderer

@param   AbstractRenderer|string $renderer

@return  static  Return self to support chaining.
Method to set property renderer