| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 35 | public function getMarking($subject) |
||
| 36 | { |
||
| 37 | $dto = $subject->getData(); |
||
| 38 | |||
| 39 | $representation = []; |
||
| 40 | |||
| 41 | if ($dto instanceof LocationDto) { |
||
| 42 | $representation[Place::FOUND] = null; |
||
| 43 | } elseif ($dto instanceof ParsedDto) { |
||
| 44 | $representation[Place::PARSED] = null; |
||
| 45 | } else { |
||
| 46 | $representation[Place::COLLECTED] = null; |
||
| 47 | } |
||
| 48 | |||
| 49 | return new Marking($representation); |
||
| 50 | } |
||
| 59 |