Code Duplication    Length = 9-12 lines in 2 locations

src/Governor/Framework/Domain/GenericDomainEventMessage.php 1 location

@@ 54-65 (lines=12) @@
51
     * @param string $id
52
     * @param \DateTime $timestamp
53
     */
54
    public function __construct(
55
        $aggregateIdentifier,
56
        $scn,
57
        $payload,
58
        MetaData $metadata = null,
59
        $id = null,
60
        \DateTime $timestamp = null
61
    ) {
62
        parent::__construct($payload, $metadata, $id, $timestamp);
63
        $this->aggregateIdentifier = $aggregateIdentifier;
64
        $this->scn = $scn;
65
    }
66
67
    /**
68
     * @return string

src/Governor/Framework/Domain/GenericEventMessage.php 1 location

@@ 47-55 (lines=9) @@
44
     * @param string $id
45
     * @param \DateTime $timestamp
46
     */
47
    public function __construct(
48
        $payload,
49
        MetaData $metadata = null,
50
        $id = null,
51
        \DateTime $timestamp = null
52
    ) {
53
        parent::__construct($payload, $metadata, $id);
54
        $this->timestamp = isset($timestamp) ? $timestamp : new \DateTime();
55
    }
56
57
    /**
58
     * @return \DateTime