<?php

namespace Modules\Core\Events;

use Modules\Core\Foundation\Asset\Pipeline\AssetPipeline;

class EditorIsRendering
{
    /**
     * @var AssetPipeline
     */
    private $assetPipeline;
    private $editorClass;
    private $editorJsPartial;

    public function __construct(AssetPipeline $assetPipeline)
    {
        $this->assetPipeline = $assetPipeline;
    }

    public function addJs($asset)
    {
        $this->assetPipeline->requireJs($asset);

        return $this;
    }

    public function addCss($asset)
    {
        $this->assetPipeline->requireCss($asset);

        return $this;
    }

    /**
     * @return mixed
     */
    public function getEditorClass()
    {
        return $this->editorClass;
    }

    /**
     * @param mixed $editorClass
     */
    public function setEditorClass($editorClass)
    {
        $this->editorClass = $editorClass;
    }

    /**
     * @return mixed
     */
    public function getEditorJsPartial()
    {
        return $this->editorJsPartial;
    }

    /**
     * @param mixed $editorJsPartial
     */
    public function setEditorJsPartial($editorJsPartial)
    {
        $this->editorJsPartial = $editorJsPartial;
    }
}
