Code Duplication    Length = 9-9 lines in 2 locations

src/Infrastructure/Projector/Projector.php 2 locations

@@ 27-35 (lines=9) @@
24
    /**
25
     * {@inheritDoc}
26
     */
27
    public function handle(EventInterface $event)
28
    {
29
        $method = $this->getHandleMethod($event);
30
        if (! method_exists($this, $method)) {
31
            throw new ProjectorHandleMethodDoesNotExistsException(get_class($this) . ' does not implement ' . $method . ' method.');
32
        }
33
34
        $this->$method($event);
35
    }
36
37
    /**
38
     * @param $event
@@ 60-68 (lines=9) @@
57
    /**
58
     * {@inheritDoc}
59
     */
60
    public function rollback(EventInterface $event)
61
    {
62
        $method = $this->getRollbackMethod($event);
63
        if (! method_exists($this, $method)) {
64
            throw new ProjectorRollbackMethodDoesNotExistsException(get_class($this) . ' does not implement ' . $method . ' method.');
65
        }
66
67
        $this->$method($event);
68
    }
69
70
    /**
71
     * @param $event