Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
IncidentContext
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Modules\SupportModule\Context;
4
5class IncidentContext
6{
7    public function __construct(
8        public readonly ?int $organizationId = null,
9        public readonly ?string $organizationName = null,
10        public readonly ?string $organizationType = null,
11
12        public readonly ?int $userId = null,
13        public readonly ?string $userName = null,
14
15        public readonly string $environment = ENVIRONMENT,
16        public readonly string $appVersion = 'unknown',
17
18        // identification runtime
19        public readonly ?string $appName = null,
20        public readonly ?string $appLocale = null,
21
22        // versioning & deploy
23        public readonly ?string $buildHash = null,       // git commit hash
24        public readonly ?string $deployedAt = null,      // date du dernier déploiement
25        public readonly ?string $channel = null,         // stable / beta / nightly
26    ) {}
27}