@param string $type

@return ButtonInterface
486788
public function setType(string $type): ButtonInterface
    {
        if ($this->isVisibility()) {
            $this->type = $type;
        }

        return $this;
    }
803401
public function setType($type)
    {
        $this->type = in_array($type = strtolower($type), ['button', 'submit', 'reset']) ? $type : 'button';

        return $this;
    }
157895
public function register(TypeInterface $type)
    {
        if (isset($this->types[$name = $type->getName()])) {
            throw new \RuntimeException("Slide type '$name' is already registered.");
        }

        $this->types[$name] = $type;

        return $this;
    }
435439
public function type($type = null)
    {
        if (is_null($type)) {
            unset($this->filters['post_type']);
        } else {
            $this->filters['post_type'] = $type;
        }
        return $this;
    }
316371
public function getMachine(string $type)
	{
		foreach ($this->backends as $b => $backend) {
			$m = $backend->getMachine($this, $type);
			if ($m !== null) {
				return $m;
			}
		}
		return null;
	}
684022
public function setIcon(string $icon = null): ButtonInterface
    {
        if ($this->isVisibility()) {
            $this->icon = $icon;
        }

        return $this;
    }
726924
public function type($type = null)
    {
        if ($type !== null) {
            $this->type = $type;
            return $this;
        }
        return $this->type;
    }
119739
protected function createHandler($type): interfaces\handlers\Handler
    {
        return \Yii::createObject($type, [$this->s3Client]);
    }
613617
public static function renderType(ButtonInterface $button) {
        return null !== $button->getType() ? $button->getPrefix() . $button->getType() : null;
    }
747894
public function type($type)
    {
        $type = strtoupper($type);
        if (!in_array($type, ['CURL', 'SOCKET', 'FILE'])) {
            $type = 'CURL';
        }
        $this->def['type'] = $type;
        return $this;
    }
356192
public function withType(string $type): self
    {
        $this->type = CredentialEnum::ensureValid($type);
        return $this;
    }
880387
public static function input(string $type)
    {
        $self = self::$input[$type] ?? new self;

        self::$input[$type] = $self;

        switch (strtoupper($type)) {
            case 'GET':
            case 'POST':
                $self->params = filter_input_array(constant('INPUT_' . $type)) ?? [];
                break;
            case 'PUT':
            case 'DELETE':
                $self->params = self::getParsedInput();
                break;
        }

        return function ($key = null) use ($self) {
            $self->key = $key;

            return $self;
        };
    }
632324
public function getHandlerFor(string $type)
    {
        if (empty($this->handlers[$type])) {
            throw new \InvalidArgumentException('There is no handler for the "'.$type.'" criteria type.');
        } elseif (is_object($this->handlers[$type]) && $this->handlers[$type] instanceof CriteriaHandler) {
            return $this->handlers[$type];
        }

        return new $this->handlers[$type];
    }
339839
public function setModeInput(string $type): Bootstrap4Button
    {
        $this->mode = 'input';
        if (in_array($type, array('button', 'submit', 'reset')) === true) {
            $this->input_type = $type;
        } else {
            $this->input_type = 'button';
        }

        return $this;
    }
358308
public function setAction(string $action = ''): ButtonInterface
    {
        if ($this->isVisibility()) {
            $this->action = $action;
        }

        return $this;
    }
1176711
public function widget(string $widgetType): WidgetInterface
    {
        //====================================================================//
        // Build Widgets Type Index Key
        $index = get_class($this->getConnector())."::".$widgetType;

        //====================================================================//
        // If Widgets Manager is New
        if (!isset($this->widgetManagers[$index])) {
            $this->widgetManagers[$index] = new Manager($this->getConnector(), $widgetType);
        }

        //====================================================================//
        // Return Widgets Manager
        return $this->widgetManagers[$index];
    }
1200647
public static function getInterface($type)
    {
        if (array_key_exists($type, self::$interfaces)) {
            return self::$interfaces[$type];
        }

        return false;
    }