| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | private function create($type) |
||
| 36 | { |
||
| 37 | $tr = null; |
||
| 38 | if (null !== $this->trFactory) { |
||
| 39 | $method = sprintf('create%s', $type); |
||
| 40 | $tr = $this->trFactory->$method(); |
||
| 41 | } |
||
| 42 | |||
| 43 | $class = sprintf('Chrisyue\PhpM3u8\Transformer\Attr%s', $type); |
||
| 44 | |||
| 45 | return new $class($this->attrName, $tr); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |