| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 21 | public function build($contentType, $contentAsTransported) |
|
| 35 | { |
||
| 36 | 21 | if(isset($this->factories[$contentType])) |
|
| 37 | 21 | { |
|
| 38 | 17 | return $this->factories[$contentType]->build($contentAsTransported); |
|
| 39 | } |
||
| 40 | |||
| 41 | 5 | $this->logger->warning(__CLASS__ . ": unknown content-type, use empty body"); |
|
| 42 | |||
| 43 | 5 | return new NullBody(); |
|
| 44 | } |
||
| 45 | } |
||
| 46 |