@param array $actions

@return static
172989
public static function make($actions)
    {
        $instance = new static();
        if (array_key_exists(
            'before',
            $actions
        )) {
            $before = !is_array($actions['before']) ? [$actions['before']] : $actions['before'];
            foreach (array_values($before) as $format) {
                $instance->addBefore(DinamycFunction::make($format));
            }
        }

        if (array_key_exists(
            'after',
            $actions
        )) {
            $after = !is_array($actions['after']) ? [$actions['after']] : $actions['after'];
            foreach (array_values($after) as $format) {
                $instance->addAfter(DinamycFunction::make($format));
            }
        }

        return $instance;
    }
821589
public function setAction($action)
    {
        foreach ($this->routes as $route)
            $route->setAction($action);
        return $this;
    }
599565
public function addPostAction($action)
    {
        $mbAction = new MbAction($this->shortcodeAction()->getMbPage(), $this->getName());

        $mbAction->setShortcode(true)->actionResolver($action);

        $this->shortcodePostAction = $mbAction;

        return $this;
    }
42283
public function union($items): ArrayCollection
    {
        return new static(array_unique(array_merge($this->items, $this->itemsArray($items))));
    }
840302
public function dispatch($action, array $parameters = [])
    {
        $parameters['key'] = $this->config('public_key');
        $parameters['sum'] = $this->summary(array_merge($parameters, [
            'action'  => $action,
            'version' => self::VERSION,
        ]));
        $uri = (new UriTemplate())->expand(self::HOST.'{/segments*}{?parameters*}', [
            'segments'   => [
                self::VERSION, $action,
            ],
            'parameters' => $parameters,
        ]);

        return (new Client())->get($uri);
    }
1057690
public function setAllowedActions($actions) {
        $diff = array_diff($actions, $this->actions_list);
        if($diff) {
            $this->error('The following actions are not exists: "' . implode('", "', $diff) . '"');
        }
        $this->allowed_actions = $actions;
    }
1338066
protected function matchAction($action, $actions): bool
    {
        return in_array($action, $actions) || $this->matchWild($actions, $action);
    }
611987
public function setListActions(array $actions)
    {
        foreach ($actions as $key => $action) {
            $this->addListAction($key, $action);
        }

        return $this;
    }
1040387
public function addAction($action)
    {
        if (!$action instanceof ActionInterface) {
            return $this;
        }

        $name = $action->getIdentifier();

        if (empty($name)) {
            return $this;
        }

        $this->actions[] = $action;

        return $this;
    }
254813
public function action($action = null)
    {
        if ($action === null) {
            return $this->clause('action');
        }

        $this->_parts['action'] = $action;

        return $this;
    }
784200
public function setAdapterAction($action)
    {
        if (true===$this->isInited) {
            $this->resetOutput();
        }
        $this->__adapter_action = $action;
        return $this;
    }
872268
public function runActions($actions)
    {
        foreach ($this->normalizeTasks($actions) as $action => $enabled) {
            if ($enabled) {
                $res = $this->runAction($action);
                if (!Helper::isResponseOk($res)) {
                    return $res;
                }
            }
        }

        return 0;
    }
1251271
public function addAction($action)
    {
        if ($action instanceof AttachmentAction) {
            $this->actions[] = $action;

            return $this;
        } elseif (is_array($action)) {
            $this->actions[] = new AttachmentAction($action);

            return $this;
        }

        throw new InvalidArgumentException('The attachment action must be an instance of jeremykenedy\Slack\AttachmentAction or a keyed array');
    }
621456
public function actions($actions)
    {
        $substitutes = $this->config('substitutes');

        foreach ($actions as $name => $config) {
            if (array_key_exists($name, $substitutes)) {
                $actions[$name]['title'] = '<i class="' . $substitutes[$name] . '"></i>';
            }
        }

        return $actions;
    }
293227
protected function _setActions($actions)
    {
        return (new Collection($actions))->map(function ($value) {
            $options = (array)$value->get('options') + ['class' => ['btn btn-default']];
            $value->set('options', $options);

            return $value;
        })->toArray();
    }
1200033
public function setAction($action)
    {
        $this->getTabs()->each(function (TabInterface $tab) use ($action) {
            if ($tab instanceof FormInterface) {
                $tab->setAction($action);
            }
        });

        return $this;
    }
1038604
public function setAction($action)
    {
        $context = $this->_context;

        $context->action = lcfirst(Text::camelize($action));

        return $this;
    }