Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 72.72% |
Changes | 0 |
1 | <?php |
||
7 | class Headers extends Zend_Controller_Action_Helper_Abstract |
||
8 | { |
||
9 | /** |
||
10 | * Set appropriate headers according to content type |
||
11 | * |
||
12 | * @param mixed $contentType |
||
13 | */ |
||
14 | 3 | public function headers($contentType): void |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * Strategy pattern: call helper as broker method |
||
31 | * |
||
32 | * @param mixed $data |
||
33 | */ |
||
34 | 3 | public function direct($data): void |
|
39 |