Total Complexity | 6 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
9 | class ReviewHtml extends ArrayObject |
||
10 | { |
||
11 | /** |
||
12 | * @var Review |
||
13 | */ |
||
14 | public $review; |
||
15 | |||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | public $values; |
||
20 | |||
21 | public function __construct( Review $review, array $values = [] ) |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return string|void |
||
30 | */ |
||
31 | public function __toString() |
||
32 | { |
||
33 | if( empty( $this->values ))return; |
||
34 | return glsr( Template::class )->build( 'templates/review', [ |
||
35 | 'context' => $this->values, |
||
36 | 'review' => $this->review, |
||
37 | ]); |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param mixed $key |
||
42 | * @return mixed |
||
43 | */ |
||
44 | public function offsetGet( $key ) { |
||
51 | } |
||
52 | } |
||
53 |