<?php

namespace FSPoster\App\Providers\Common;


class WorkflowDriver
{
    protected $driver;
    protected $name;
    protected $editAction;

    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    public function setEditAction($route, $action): WorkflowDriver
    {
        $this->editAction = $route . '.' . $action;

        return $this;
    }

    public function getDriver()
    {
        return $this->driver;
    }

    public function getName()
    {
        return $this->name;
    }

    public function getEditAction()
    {
        return $this->editAction;
    }

    public function expandItems(array $actionData): array
    {
        return [$actionData];
    }
}
