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