Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class MockPage |
||
6 | { |
||
7 | public $adds = []; |
||
8 | |||
9 | public function add($template, array $data = Array(), string $region = "main", int $sort = 0) : object |
||
10 | { |
||
11 | $this->adds[] = [ |
||
12 | "template" => $template, |
||
13 | "data" => $data, |
||
14 | "region" => $region, |
||
15 | "sort" => $sort |
||
16 | ]; |
||
17 | |||
18 | return $this; |
||
19 | } |
||
20 | |||
21 | public function render(array $args = Array(), int $status = 200) |
||
27 | ]; |
||
28 | } |
||
30 |