| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 2.0078 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 23 | 30 |     public function __construct($wi) { | |
| 24 | 30 |         if (!($wi instanceof WrapIt)) { | |
| 25 |             throw new WrapItParameterException("WrapIt class required"); | ||
| 26 | } | ||
| 27 | |||
| 28 | 30 | $this->client_id = $wi->getClientId(); | |
| 29 | 30 | $this->client_secret = $wi->getClientSecret(); | |
| 30 | 30 | $this->domain = $wi->getDomain(); | |
| 31 | 30 | $this->api_requester = new WrapItApiRequester($wi->getDomain()); | |
| 32 | 30 | } | |
| 33 | } | ||
| 34 |