Conditions | 2 |
Paths | 2 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
39 | public function toMarkdown(): string |
||
40 | { |
||
41 | $args = array_map( |
||
42 | function (MetadataParameter $a) { |
||
43 | return $a->toMarkdown(); |
||
44 | }, |
||
45 | $this->args |
||
46 | ); |
||
47 | |||
48 | $argString = ''; |
||
49 | if (!empty($args)) { |
||
50 | $argString = join("\n", $args); |
||
51 | } |
||
52 | |||
53 | return <<<EOF |
||
54 | ## {$this->name} |
||
55 | |||
56 | {$this->comment} |
||
57 | |||
58 | $argString |
||
59 | |||
105 |