Total Complexity | 6 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class GenderizeResponse extends BaseModel |
||
8 | { |
||
9 | protected $meta; |
||
10 | |||
11 | protected $result; |
||
12 | |||
13 | public function __construct($response) |
||
14 | { |
||
15 | $this->result = $this->setResult($response); |
||
16 | $this->meta = $this->setMeta($response); |
||
17 | } |
||
18 | |||
19 | protected function setMeta($data) |
||
20 | { |
||
21 | return new Meta($data); |
||
22 | } |
||
23 | |||
24 | protected function setResult($response) |
||
31 | } |
||
32 | |||
33 | protected function returnWithCollection($response) |
||
42 | } |
||
43 | } |
||
44 |