Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | public function __construct(array $response) |
||
44 | { |
||
45 | $this->response = $response; |
||
46 | |||
47 | $this->id = intval($this->response['user_id']); |
||
48 | |||
49 | if (isset($this->response['email'])) { |
||
50 | $this->email = $this->response['email']; |
||
51 | } |
||
52 | |||
53 | $this->username = preg_replace('/[^a-z\d]/i', '', $this->response['screen_name']); |
||
54 | } |
||
117 |