/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/AssetMapper/ImportMap/ImportMapPackageAudit.php
32 строки
830 B
hubert.lenoir
[AssetMapper] Add audit command
05 окт 2023, 09:23
05 окт 2023, 09:23
6d150fc
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\AssetMapper\ImportMap; final class ImportMapPackageAudit { public function __construct( public readonly string $package, public readonly ?string $version, /** @var array<ImportMapPackageAuditVulnerability> */ public readonly array $vulnerabilities = [], ) { } public function withVulnerability(ImportMapPackageAuditVulnerability $vulnerability): self { return new self( $this->package, $this->version, [...$this->vulnerabilities, $vulnerability], ); } }