    /**
     * @param string|null $packageName
     * @param string|null $name
     * @param string      $type
     *
     * @return string|bool
     */
    public function getHtml(?string $packageName = null, ?string $name = null, string $type = 'all')
    {
        if (!in_array($type, [
            self::RETRIEVE_ALL,
            self::RETRIEVE_ERRORS,
            self::RETRIEVE_INFO,
        ])) {
            throw new \InvalidArgumentException('Notifications type must be one of "all", "error" or "info"');