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

        $paletteCollection = $this->paletteCollectionClass->newInstance();

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

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

        $paletteCollection = $this->paletteCollectionClass->newInstance();

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

        return $this;
    }
public function createPaletteCollection ( ) { if ( $ this -> paletteCollection ) { $ this -> finishPaletteCollection ( ) ; } $ paletteCollection = $ this -> paletteCollectionClass -> newInstance ( ) ; $ event = new CreatePaletteCollectionEvent ( $ paletteCollection , $ this ) ; $ this -> dispatchEvent ( $ event ) ; $ this -> paletteCollection = $ event -> getPaletteCollection ( ) ; return $ this ; }
Start a new palette collection.

@return PaletteBuilder
Start a new palette collection .