Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class CodeSample |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | public $code; |
||
15 | |||
16 | /** |
||
17 | * @var \Illuminate\Support\Collection|\Zing\QueryBuilder\Samples\IOSample[] |
||
18 | */ |
||
19 | public $ioSamples; |
||
20 | |||
21 | /** |
||
22 | * @param string $code |
||
23 | * @param \Zing\QueryBuilder\Samples\IOSample[] $ioSamples |
||
24 | */ |
||
25 | public function __construct(string $code, array $ioSamples) |
||
26 | { |
||
27 | $this->code = $code; |
||
28 | $this->ioSamples = collect($ioSamples); |
||
29 | } |
||
30 | |||
31 | public function print(): string |
||
42 | )); |
||
43 | } |
||
45 |