| Conditions | 5 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 5 | ||
| Bugs | 1 | Features | 4 | 
| 1 | <?php | ||
| 29 | public function __construct($wpdir, $multisiteDomainType, $wpBridge = null) | ||
| 30 |     { | ||
| 31 |         if (!is_string($wpdir) || $wpdir === '' || $wpdir === '/') { | ||
| 32 |             throw new Exception('Please set the relative path to your Wordpress install folder.'); | ||
| 33 | } | ||
| 34 | |||
| 35 | $this->setWpBridge(($wpBridge !== null) ? $wpBridge : new WpBridge()); | ||
| 36 | |||
| 37 | $handler = new $multisiteDomainType($wpdir); | ||
| 38 | $handler->setWpBridge($this->getWpBridge()); | ||
| 39 | |||
| 40 | $this->handler = $handler; | ||
| 41 | } | ||
| 42 | |||
| 61 |