| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 15 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 14 | public function __construct($token, array $options = array())  | 
            ||
| 15 |     { | 
            ||
| 16 | // token  | 
            ||
| 17 |         if (!is_string($token)) { | 
            ||
| 18 |             throw new InvalidOptionsException('The first argument is expected to be of type "string"'); | 
            ||
| 19 | }  | 
            ||
| 20 | |||
| 21 | $this->token = $token;  | 
            ||
| 22 | |||
| 23 | // options  | 
            ||
| 24 | $resolver = new OptionsResolver();  | 
            ||
| 25 | $this->setDefaultOptions($resolver);  | 
            ||
| 26 | |||
| 27 | $this->options = $resolver->resolve($options);  | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 62 |