@param string|string[] $tTags

@return $this
@throws \InvalidArgumentException
166435
public function clearCache($tTags): self
    {
        $tTags = (array)$tTags;
        $this->oCache->deleteItemsByTags($tTags);

        return $this;
    }
389023
public function tag($tag, array $keys)
	{
		foreach ($keys as $key)
		{
			$resolvedKey = $this->resolveAlias($key);

			if (!isset($this->tags[$tag]))
			{
				$this->tags[$tag] = array();
			}

			$this->tags[$tag][] = $resolvedKey;
		}

		// Prune duplicates
		$this->tags[$tag] = array_unique($this->tags[$tag]);

		return $this;
	}
627545
public function add(...$flags)
    {
        foreach ($flags as $flag) {
            if (!$this->has($flag)) {
                $this->flags = $this->flags | (int)$flag;
            }
        }

        return $this;
    }
687241
public function setDefaultPath($defaultPath)
    {
        $defaultPath = realpath($defaultPath);
        if (!$defaultPath) {
            throw new \InvalidArgumentException('Error default path!');
        }
        $this->defaultPath = $defaultPath . DIRECTORY_SEPARATOR;
        return $this;
    }
508769
public function setArguments($arguments)
    {
        foreach ($arguments as $name => $argument) {
            $this->setArgument($name, $argument);
        }

        return $this;
    }
1018451
public function setFailureFlag($failureFlag)
    {
        if (!in_array($failureFlag, array(self::FAIL_GRACEFULLY, self::FAIL_WITH_ERROR))) {
            throw new \InvalidArgumentException(
                'The failure flag of an SplClassLoader instance must be one of class "FAIL_" constants!'
            );
        }
        $this->_failureFlag = $failureFlag;
        return $this;
    }
589001
public function addFlag($flags)
    {
        $this->bitmask = $this->bitmask | $this->getMaskFromFlags($flags);

        return $this;
    }
1003634
public function detachTags($tags)
    {
        $tags = static::convertToTags($tags);

        collect($tags)
            ->filter()
            ->each(function (Tag $tag) {
                $this->tags()->detach($tag);
            });

        return $this;
    }
1332126
public function setText($text)
    {
        if (!is_string($text)) {
            throw new InvalidArgumentException('string', 0);
        }

        $text = trim($text);

        if (strpos($text, '#') !== 0) {
            $text = '# ' . $text;
        }

        $this->text = $text;

        return $this;
    }
735506
public function remove(...$flags)
    {
        foreach ($flags as $flag) {
            if ($this->has($flag)) {
                $this->flags = $this->flags ^ (int) $flag;
            }
        }

        return $this;
    }
67650
public function setAssets($assets): self
    {
        if (is_array($assets)) {
            $assets = new \ArrayIterator($assets);
        }
        if (!$assets instanceof \Traversable) {
            throw new \InvalidArgumentException('Assets must be an iterable array or object.');
        }
        $this->assets = $assets;

        return $this;
    }
480799
protected function mixinTags(&$tags) {
$tags = array();
while ($this->tag($tt, true)) {
$tags[] = $tt;
$this->literal(">");
}

if (count($tags) == 0) return false;

return true;
}
1112076
public function setArguments(array $arguments)
    {
        $options = [];
        if (!empty($arguments)) {
            if (
                !$this->checkFixedArray($arguments, count($arguments) > 1 ? 2 : 1) ||
                !is_numeric($arguments[0]) ||
                (isset($arguments[1]) && !is_array($arguments[1]))
            ) {
                throw new InvalidCommandArgumentException($this, $arguments);
            }

            if (isset($arguments[1])) {
                $options = $arguments[1];
                $this->checkOptionsInt($options, ['count']);
                $this->checkOptionsString($options, ['queue', 'reply']);
                $this->checkOptionsArray($options, ['state']);
            }
        }

        $this->arguments = array_merge([
            !empty($arguments) ? (int) $arguments[0] : 0
        ], $this->toArguments($options));
    }
499763
public function set($path)
	{
		if (! is_string($path)) {
			throw new \InvalidArgumentException();
		}
		if ($path === '') {
			$this->setParts([]);
		} else {
			$this->setParts(explode('/', $path));
		}
		return $this;
	}
632333
public function detachTags($tags = null)
    {
        ! $tags || $tags = $this->parseTags($tags);

        $this->tags()->detach($tags);

        return $this;
    }
837436
public function setName($name)
    {
        if (!preg_match('/^' . self::REGEX_TAGNAME . '$/u', $name)) {
            throw new \InvalidArgumentException(
                'Invalid tag name supplied: ' . $name
            );
        }

        $this->tag = $name;

        return $this;
    }
921835
public function setMessages($messages)
	{
		if (!is_array($messages))
		{
			throw new InvalidArgumentException(sprintf(
				'Messages must be an array. Type of "%s" passed.',
				gettype($messages)
			));
		}

		$this->_messages = $messages;

		return $this;
	}