Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 72.72% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
8 | final class MetadataParameter |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | public $name; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | public $type; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | public $comment; |
||
24 | |||
25 | 4 | public function __construct(string $name, string $type, string $comment) |
|
30 | 4 | } |
|
31 | |||
32 | public function toMarkdown(): string |
||
33 | { |
||
34 | return <<<EOF |
||
35 | ### {$this->name} ({$this->type}) |
||
36 | |||
37 | {$this->comment} |
||
38 | |||
39 | EOF; |
||
40 | } |
||
41 | |||
42 | 2 | public function toGraphql(): string |
|
50 | EOF; |
||
51 | } |
||
53 |