✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ webm004.cluster127.gra.hosting.ovh.net ​🇻​♯➤ 6.18.42-ovh-vps-grsec-zfs+ #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 54.36.91.62 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.223
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ _dyuweyrj4,_dyuweyrj4r,dl

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/docteuh/www/plugins/Dtos//HighestSeverityContextDto.php
<?php

declare(strict_types=1);

namespace ReallySimplePlugins\RSS\Core\Features\Vulnerability\Dtos;

/**
 * Immutable data transfer object representing the highest-severity vulnerability
 * for a specific installed component.
 *
 * This DTO combines vulnerability data with local runtime context, such as:
 * - Which component is affected (plugin, theme, or core).
 * - The highest detected severity for that component.
 * - Whether an update is available for the installed version.
 *
 * It is primarily used to:
 * - Drive admin UI displays (tables, dashboards).
 * - Provide structured input for notification and policy decisions.
 *
 * This object contains data only:
 * - No persistence logic
 * - No policy or decision logic
 * - No WordPress hooks or scheduling concerns
 */
final class HighestSeverityContextDto
{
    /**
     * Normalized severity label (`low`, `medium`, `high`, `critical`).
     *
     * @var string
     */
    public string $severity;

    /**
     * Vulnerability identifier used for correlation and lookups.
     *
     * @var string
     */
    public string $lookup;

    /**
     * Component slug used to match installed components.
     *
     * @var string
     */
    public string $slug;

    /**
     * Component type (`plugin`, `theme`, or `core`).
     *
     * @var string
     */
    public string $type;

    /**
     * Human-readable component name.
     *
     * @var string
     */
    public string $name;

    /**
     * Latest known available version for this component.
     *
     * @var string
     */
    public string $latestVersion;

    /**
     * Whether an update is currently available.
     *
     * @var bool
     */
    public bool $hasUpdate;

    /**
     * Raw vulnerability payload as received from storage/API.
     *
     * @var array<string, mixed>
     */
    public array $vulnerability;

    /**
     * Constructor.
     *
     * @param string $severity Normalized severity label (`low`, `medium`, `high`, `critical`).
     * @param string $lookup Vulnerability identifier used for correlation and lookups.
     * @param string $slug Component slug used to match installed components.
     * @param string $type Component type (`plugin`, `theme`, or `core`).
     * @param string $name Human-readable component name.
     * @param string $latestVersion Latest known available version for this component.
     * @param bool $hasUpdate Whether an update is currently available.
     * @param array<string, mixed> $vulnerability Raw vulnerability payload as received from storage/API.
     */
    public function __construct(
        string $severity,
        string $lookup,
        string $slug,
        string $type,
        string $name,
        string $latestVersion,
        bool $hasUpdate,
        array $vulnerability
    ) {
        $this->vulnerability = $vulnerability;
        $this->hasUpdate = $hasUpdate;
        $this->latestVersion = $latestVersion;
        $this->name = $name;
        $this->type = $type;
        $this->slug = $slug;
        $this->lookup = $lookup;
        $this->severity = $severity;
    }

    /**
     * Return a new instance with an updated hasUpdate flag.
     *
     * The original instance is not modified (immutability).
     *
     * @param bool $hasUpdate New hasUpdate flag value.
     * @return self New instance with updated hasUpdate.
     */
    public function withHasUpdate(bool $hasUpdate): self
    {
        return new self(
            $this->severity,
            $this->lookup,
            $this->slug,
            $this->type,
            $this->name,
            $this->latestVersion,
            $hasUpdate,
            $this->vulnerability
        );
    }

    /**
     * Convert this DTO to an array.
     *
     * The array shape is intended for UI rendering or serialization.
     * The returned structure is stable and explicit.
     *
     * @return array{
     *   severity: string,
     *   lookup: string,
     *   slug: string,
     *   type: string,
     *   name: string,
     *   latestVersion: string,
     *   hasUpdate: bool,
     *   vulnerability: array<string, mixed>
     * }
     */
    public function toArray(): array
    {
        return [
            'severity' => $this->severity,
            'lookup' => $this->lookup,
            'slug' => $this->slug,
            'type' => $this->type,
            'name' => $this->name,
            'latestVersion' => $this->latestVersion,
            'hasUpdate' => $this->hasUpdate,
            'vulnerability' => $this->vulnerability,
        ];
    }
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
22 Sep 2026 9.10 PM
docteuh / users
0755
ComponentVulnerabilitiesDto.php
5.876 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
GridBlock.js
1.118 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
HighestSeverityContextDto.php
4.453 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
InstalledComponentDto.php
3.941 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
LICENSE
1.045 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
ModalControl.js
0.463 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
TaskElement.js
4.363 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
VulnerabilityRangeDto.php
3.996 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
VulnerabilitySnapshotDto.php
3.905 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
class-admin.php
12.73 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
hoverTooltip_bu.js
2.843 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
icon-redirect-manager-20260827192224.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
xmlrpc.php
1.223 KB
23 Jun 2026 6.19 PM
docteuh / users
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF