Set process title.
@param string $title
@return bool
770777
public static function setTitle(string $title): bool
    {
        if (!$title || 'Darwin' === \PHP_OS) {
            return false;
        }

        if (\function_exists('cli_set_process_title')) {
            \cli_set_process_title($title);
        } elseif (\function_exists('setproctitle')) {
            \setproctitle($title);
        }

        if ($error = \error_get_last()) {
            throw new \RuntimeException($error['message']);
        }

        return false;
    }
656338
protected function setTitleAttribute($title)
    {
        $this->attributes['title'] = $title;
        $this->slug = Str::slug($title);
    }
1108883
public function set_pagetitle($title)
    {
        if ($this->config->get('devel_mode') && !empty($_SESSION['username'])) {
            $name = $_SESSION['username'];
        }
        else {
            $name = $this->config->get('product_name');
        }

        $this->command('set_pagetitle', empty($name) ? $title : $name . ' :: ' . $title);
    }
1179512
public function setTitle($title)
    {
        if (strlen($title) == 0) {
            throw new \InvalidArgumentException(sprintf('Channel title should not be empty'));
        }

        $this->title = $title;

        return $this;
    }
540273
private function checkTitle(&$title)
    {
        if ( ! is_string($title)) {
            $type = gettype($title);

            throw new InvalidArgumentException("The title must be a string value, [$type] is given.");
        }

        $title = trim($title);

        if (empty($title)) {
            throw new InvalidArgumentException('The title is required and must not be empty.');
        }
    }
1110026
public function setTitle($value)
    {
        if ($value != null) {
            $this->_params['title'] = $value;
        } else {
            unset($this->_params['title']);
        }
        return $this;
    }
883178
public static function resetProcessTitle()
    {
        $processTitle = self::$processTitles ? array_pop(self::$processTitles) : null;

        self::changeProcessTitleTo($processTitle);
    }
914919
public function title($title)
    {
        if (mb_strlen($title) > 80) {
            throw CouldNotCreateCard::titleLimitExceeded($title);
        }

        $this->payload['title'] = $title;

        return $this;
    }
1156315
public function setTitle($title)
    {
        $title = trim($title);
        $title = language($title);
        $this->store('title', $title);
        presenter()->meta->title->append($title);

        return $this;
    }
1271479
public function readByTitle($title) {
        $result = $this->api->request(
            'cmdb.object_types',
            [
                'filter' => [
                    'title' => $title
                ],
                'countobjects' => true
            ]
        );

        return end($result);
    }
234425
public function setTitle($title)
	{
		if ( $title == $this->getTitle() ) { return; }

		$this->_values['title'] = (string) $title;
		$this->setModified();
	}
1059563
public function setProcessTitle(string $title = null)
    {
        if ($title === null) {
            return;
        }

        if (strlen($title) === 0) {
            throw new \InvalidArgumentException('Process title cannot be empty');
        }

        // @codeCoverageIgnoreStart
        if (!function_exists('cli_set_process_title')) {
            $this->getLogger()->warning("function [cli_set_process_title] does not exists");

            return;
        }
        // @codeCoverageIgnoreEnd

        try {
            cli_set_process_title($title);
        } catch (\Throwable $e) {
            if ($e->getCode() === 2) {
                $this->getLogger()->warning($e->getMessage() . ". Probably, permission denied to set process title. Try again with privileged user");
            } else {
                throw $e;
            }
        }

    }
184410
public function title(string $title): Command
    {
        $size = strlen($title);
        $spaces = str_repeat(' ', $size);

        $this->output->newLine();
        $this->output->writeln("<bg=blue;fg=white>$spaces$spaces$spaces</>");
        $this->output->writeln("<bg=blue;fg=white>$spaces$title$spaces</>");
        $this->output->writeln("<bg=blue;fg=white>$spaces$spaces$spaces</>");
        $this->output->newLine();

        return $this;
    }
1010076
public function setPlural($title = [])
    {
        if (! empty($title) && isset($title[1])) {
            $this->plural = $title[1];
        } else {
            $name = str_replace('_', ' ', $this->getSlug());

            $this->plural = Str::plural(Str::title($name));
        }

        return $this;
    }
175543
public function setTitle(Title $title)
    {
        $this->attachment['title'] = $title;

        if ($title->hasLink()) {
            $this->attachment['title_link'] = $title->getLink();
        }

        return $this;
    }
900793
public function setTitle($title)
    {
        $this->title = $title;
        $this->normalizedTitle = UrlUtil::normalize($title);
        return $this;
    }
60280
public function deleteByTitle($title) {
        $result = $this->api->request(
            'monitoring.livestatus.delete',
            [
                'title' => $title
            ]
        );

        if (!array_key_exists('success', $result) ||
            $result['success'] !== true) {
            if (array_key_exists('message', $result)) {
                throw new RuntimeException(sprintf('Bad result: %s', $result['message']));
            } else {
                throw new RuntimeException('Bad result');
            }
        }

        return $this;
    }