@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * Checks if $obj contains $property and if not, returns $alternative. |
31 | 31 | * |
32 | - * @param object $obj Object to check |
|
32 | + * @param \SSpkS\Package\Package $obj Object to check |
|
33 | 33 | * @param string $property Property to check for |
34 | 34 | * @param mixed $alternative Alternative to return if key not found |
35 | 35 | * @return mixed Value from $obj->$property or $alternative |
@@ -33,11 +33,17 @@ |
||
33 | 33 | $this->setVariable('requestUri', $_SERVER['REQUEST_URI']); |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $name |
|
38 | + */ |
|
36 | 39 | public function setVariable($name, $value) |
37 | 40 | { |
38 | 41 | $this->tplVars[$name] = $value; |
39 | 42 | } |
40 | 43 | |
44 | + /** |
|
45 | + * @param string $tplName |
|
46 | + */ |
|
41 | 47 | public function setTemplate($tplName) |
42 | 48 | { |
43 | 49 | $this->template = $tplName; |