src/DataDefinition/Palette/Builder/PaletteBuilder.php
public function usePaletteCollection(PaletteCollectionInterface $paletteCollection)
    {
        if ($this->paletteCollection) {
            $this->finishPaletteCollection();
        }

        $event = new UsePaletteCollectionEvent($paletteCollection, $this);
        $this->dispatchEvent($event);
        $this->paletteCollection = $paletteCollection;

        return $this;
    }
public function usePaletteCollection(PaletteCollectionInterface $paletteCollection)
    {
        if ($this->paletteCollection) {
            $this->finishPaletteCollection();
        }

        $event = new UsePaletteCollectionEvent($paletteCollection, $this);
        $this->dispatchEvent($event);
        $this->paletteCollection = $paletteCollection;

        return $this;
    }
public function usePaletteCollection ( PaletteCollectionInterface $ paletteCollection ) { if ( $ this -> paletteCollection ) { $ this -> finishPaletteCollection ( ) ; } $ event = new UsePaletteCollectionEvent ( $ paletteCollection , $ this ) ; $ this -> dispatchEvent ( $ event ) ; $ this -> paletteCollection = $ paletteCollection ; return $ this ; }
Reuse an existing palette collection.

@param PaletteCollectionInterface $paletteCollection The palette collection to reuse.

@return PaletteBuilder
Reuse an existing palette collection .