| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 21 | public function build(object $object, string $graph = 'default'): FiniteStateMachine |
|
| 28 | { |
||
| 29 | 21 | $graph = $this->graphResolver->resolve($object, $graph); |
|
| 30 | 19 | $objectProxy = $this->objectProxyResolver->resolve($object, $graph->objectProxyOptions()); |
|
| 31 | |||
| 32 | 19 | return new FiniteStateMachine($objectProxy, $graph, $this->eventDispatcher); |
|
| 33 | } |
||
| 35 |