Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
PluginCacheItem | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\App\Models\Cache; |
6 | |
7 | class PluginCacheItem |
8 | { |
9 | /** |
10 | * 生成。 |
11 | * |
12 | * @param string $pluginId |
13 | * @param string $userId |
14 | * @param string $pluginName |
15 | * @param string $displayName |
16 | * @param string $state |
17 | * @param string $description |
18 | * @param array<string,string> $urls |
19 | * @param string[] $categoryIds |
20 | */ |
21 | public function __construct( |
22 | public string $pluginId, |
23 | public string $userId, |
24 | public string $pluginName, |
25 | public string $displayName, |
26 | public string $state, |
27 | public string $description, |
28 | public array $urls, |
29 | public array $categoryIds |
30 | ) { |
31 | } |
32 | } |