public static function pushRenderer( $renderer )
    {
        if (! in_array( 'Altamira\ChartRenderer\RendererInterface', class_implements( $renderer ) ) ) {
            throw new \UnexpectedValueException( "Renderer must be instance of or string name of a class implementing RendererInterface" );
        }

        array_push( self::$rendererChain, $renderer );
        
        return self::getInstance();
    }
public static function pushRenderer( $renderer )
    {
        if (! in_array( 'Altamira\ChartRenderer\RendererInterface', class_implements( $renderer ) ) ) {
            throw new \UnexpectedValueException( "Renderer must be instance of or string name of a class implementing RendererInterface" );
        }

        array_push( self::$rendererChain, $renderer );
        
        return self::getInstance();
    }
public static function pushRenderer ( $ renderer ) { if ( ! in_array ( 'Altamira\ChartRenderer\RendererInterface' , class_implements ( $ renderer ) ) ) { throw new \ UnexpectedValueException ( "Renderer must be instance of or string name of a class implementing RendererInterface" ) ; } array_push ( self :: $ rendererChain , $ renderer ) ; return self :: getInstance ( ) ; }
Adds a renderer to the end of the renderer chain
@param string $renderer
@throws \UnexpectedValueException
@return \Altamira\ChartRenderer
Adds a renderer to the end of the renderer chain