|
6 | 6 |
|
7 | 7 | class TreblleConfiguration
|
8 | 8 | {
|
| 9 | + /** @var string $apiKey */ |
9 | 10 | private string $apiKey;
|
| 11 | + |
| 12 | + /** @var string $projectId */ |
10 | 13 | private string $projectId;
|
| 14 | + |
| 15 | + /** @var string $endpointUrl */ |
11 | 16 | private string $endpointUrl;
|
12 |
| - /** |
13 |
| - * @var list<string> |
14 |
| - */ |
| 17 | + |
| 18 | + /** @var list<string> $masked */ |
15 | 19 | private array $masked;
|
| 20 | + |
| 21 | + /** @var list<string> $ignore */ |
| 22 | + private array $ignore; |
| 23 | + |
| 24 | + /** @var bool $debug */ |
16 | 25 | private bool $debug;
|
17 | 26 |
|
18 | 27 | /**
|
19 |
| - * @param list<string> $masked |
| 28 | + * @param string $apiKey |
| 29 | + * @param string $projectId |
| 30 | + * @param string $endpointUrl |
| 31 | + * @param array<int,string> $masked |
| 32 | + * @param bool $debug |
| 33 | + * @param array<int,string> $ignore |
20 | 34 | */
|
21 |
| - public function __construct(string $apiKey, string $projectId, string $endpointUrl, array $masked, bool $debug) |
| 35 | + public function __construct(string $apiKey, string $projectId, string $endpointUrl, array $masked, bool $debug, array $ignore = []) |
22 | 36 | {
|
23 | 37 | $this->apiKey = $apiKey;
|
24 | 38 | $this->projectId = $projectId;
|
25 | 39 | $this->endpointUrl = $endpointUrl;
|
26 | 40 | $this->masked = $masked;
|
| 41 | + $this->ignore = $ignore; |
27 | 42 | $this->debug = $debug;
|
28 | 43 | }
|
29 | 44 |
|
| 45 | + /** |
| 46 | + * @return string |
| 47 | + */ |
30 | 48 | public function getApiKey(): string
|
31 | 49 | {
|
32 | 50 | return $this->apiKey;
|
33 | 51 | }
|
34 | 52 |
|
| 53 | + /** |
| 54 | + * @return string |
| 55 | + */ |
35 | 56 | public function getProjectId(): string
|
36 | 57 | {
|
37 | 58 | return $this->projectId;
|
38 | 59 | }
|
39 | 60 |
|
| 61 | + /** |
| 62 | + * @return string |
| 63 | + */ |
40 | 64 | public function getEndpointUrl(): string
|
41 | 65 | {
|
42 | 66 | return $this->endpointUrl;
|
43 | 67 | }
|
44 | 68 |
|
45 | 69 | /**
|
46 |
| - * @return list<string> |
| 70 | + * @return array<int,string> |
47 | 71 | */
|
48 | 72 | public function getMasked(): array
|
49 | 73 | {
|
50 | 74 | return $this->masked;
|
51 | 75 | }
|
52 | 76 |
|
| 77 | + /** |
| 78 | + * @return bool |
| 79 | + */ |
53 | 80 | public function isDebug(): bool
|
54 | 81 | {
|
55 | 82 | return $this->debug;
|
56 | 83 | }
|
| 84 | + |
| 85 | + /** |
| 86 | + * @return array<int,string> |
| 87 | + */ |
| 88 | + public function getIgnored(): array |
| 89 | + { |
| 90 | + return $this->ignore; |
| 91 | + } |
57 | 92 | }
|
0 commit comments