| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | private function initFactory($contentType) |
||
| 40 | { |
||
| 41 | foreach (self::$factoriesMap as $type => $factoryName) { |
||
| 42 | $matched = is_int(strpos($contentType, $type)); |
||
| 43 | if ($matched) { |
||
| 44 | $class = self::$factoriesNamespace.$factoryName; |
||
| 45 | $this->factory = new $class($contentType); |
||
| 46 | } |
||
| 47 | } |
||
| 48 | } |
||
| 49 | |||
| 62 |