Conditions | 4 |
Paths | 4 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | 1 | public function __construct($data = array(), $result = false, $total = null, $pages = 1, $message = null) |
|
42 | { |
||
43 | 1 | parent::__construct(false); |
|
44 | 1 | $this->data = $data; |
|
45 | 1 | $this->success = $result; |
|
46 | 1 | $this->total = $total ?: (is_array($data) ? count($data) : 0); |
|
47 | 1 | $this->pages = $pages; |
|
48 | 1 | if(null !== $message) { |
|
49 | 1 | $this->message = $message; |
|
50 | } |
||
52 | } |