Code Duplication    Length = 13-13 lines in 2 locations

src/EventSourcing/DBAL/AggregateAwareDBALEventStore.php 1 location

@@ 62-74 (lines=13) @@
59
     * @param string $tableName
60
     * @param mixed $aggregateType
61
     */
62
    public function __construct(
63
        Connection $connection,
64
        SerializerInterface $payloadSerializer,
65
        SerializerInterface $metadataSerializer,
66
        $tableName,
67
        $aggregateType
68
    ) {
69
        $this->connection         = $connection;
70
        $this->payloadSerializer  = $payloadSerializer;
71
        $this->metadataSerializer = $metadataSerializer;
72
        $this->tableName          = $tableName;
73
        $this->aggregateType      = (string) $aggregateType;
74
    }
75
76
    /**
77
     * {@inheritDoc}

src/EventSourcing/DBAL/EventStream.php 1 location

@@ 67-79 (lines=13) @@
64
     * @param SerializerInterface $metadataSerializer
65
     * @param string $tableName
66
     */
67
    public function __construct(
68
        Connection $connection,
69
        SerializerInterface $payloadSerializer,
70
        SerializerInterface $metadataSerializer,
71
        $tableName
72
    ) {
73
        $this->connection = $connection;
74
        $this->payloadSerializer = $payloadSerializer;
75
        $this->metadataSerializer = $metadataSerializer;
76
        $this->tableName = $tableName;
77
        $this->startId = 0;
78
        $this->aggregateType = '';
79
    }
80
81
    /**
82
     * @param int $startId