src/Action.php
public function setTitle($title)
    {
        if (!is_string($title)) {
            $exMsg = sprintf('Provided title `%s` is not a string', $title);
            throw new LogicException($exMsg);
        }

        $this->title = $title;

        return $this;
    }
public function setTitle($title)
    {
        if (!is_string($title)) {
            $exMsg = sprintf('Provided title `%s` is not a string', $title);
            throw new LogicException($exMsg);
        }

        $this->title = $title;

        return $this;
    }
Set title

@param string $title
@return $this