src/DataDefinition/Palette/Builder/PaletteBuilder.php
public function setLegendClassName($legendClassName)
    {
        $event = new SetLegendClassNameEvent($legendClassName, $this);
        $this->dispatchEvent($event);
        $legendClassName = $event->getLegendClassName();

        $this->legendClassName = (string) $legendClassName;
        $this->legendClass     = new \ReflectionClass($this->legendClassName);
        return $this;
    }
public function setLegendClassName($legendClassName)
    {
        $event = new SetLegendClassNameEvent($legendClassName, $this);
        $this->dispatchEvent($event);
        $legendClassName = $event->getLegendClassName();

        $this->legendClassName = (string) $legendClassName;
        $this->legendClass     = new \ReflectionClass($this->legendClassName);
        return $this;
    }
public function setLegendClassName ( $ legendClassName ) { $ event = new SetLegendClassNameEvent ( $ legendClassName , $ this ) ; $ this -> dispatchEvent ( $ event ) ; $ legendClassName = $ event -> getLegendClassName ( ) ; $ this -> legendClassName = ( string ) $ legendClassName ; $ this -> legendClass = new \ ReflectionClass ( $ this -> legendClassName ) ; return $ this ; }
Set the legend class name.

@param string $legendClassName The class name.

@return PaletteBuilder
Set the legend class name .