Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
54 | public function __construct(array $response) |
||
55 | { |
||
56 | $this->response = $response; |
||
57 | |||
58 | $this->id = (int)$this->response['user_id']; |
||
59 | |||
60 | if (isset($this->response['email'])) { |
||
61 | $this->email = $this->response['email']; |
||
62 | } |
||
63 | |||
64 | $this->username = preg_replace('/[^a-z\d]/i', '', $this->response['screen_name']); |
||
65 | } |
||
127 |