Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
22 | class View |
||
23 | { |
||
24 | /** |
||
25 | * variables available in the template |
||
26 | * |
||
27 | * @access private |
||
28 | * @var array |
||
29 | */ |
||
30 | private $_variables = array(); |
||
31 | |||
32 | /** |
||
33 | * assign variables to be used inside of the template |
||
34 | * |
||
35 | * @access public |
||
36 | * @param string $name |
||
37 | * @param mixed $value |
||
38 | */ |
||
39 | 38 | public function assign($name, $value) |
|
42 | 38 | } |
|
43 | |||
44 | /** |
||
45 | * render a template |
||
46 | * |
||
47 | * @access public |
||
48 | * @param string $template |
||
49 | * @throws Exception |
||
50 | */ |
||
51 | 38 | public function draw($template) |
|
62 |