| Total Complexity | 6 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Coverage | 68.18% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class CreatePaginator extends Zend_Controller_Action_Helper_Abstract |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Create a new Zend_Paginator and configure it with GET or session variables |
||
| 13 | * |
||
| 14 | * @param mixed $data |
||
| 15 | * |
||
| 16 | * @return Zend_Paginator |
||
| 17 | */ |
||
| 18 | 4 | public function createPaginator($data) |
|
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Strategy pattern: call helper as broker method |
||
| 56 | * |
||
| 57 | * @param mixed $data |
||
| 58 | * |
||
| 59 | * @return Zend_Paginator |
||
| 60 | */ |
||
| 61 | 4 | public function direct($data) |
|
| 66 |