Code Duplication    Length = 8-8 lines in 2 locations

src/DataContainer/DataContainer.php 1 location

@@ 92-99 (lines=8) @@
89
     *
90
     * @return int
91
     */
92
    public function getId()
93
    {
94
        if (null === $this->id) {
95
            static::$idGenerator += 1;
96
            $this->id = static::$idGenerator;
97
        }
98
        return $this->id;
99
    }
100
}
101

src/DataContainer/Entity.php 1 location

@@ 193-200 (lines=8) @@
190
     *
191
     * @return int
192
     */
193
    public function getId()
194
    {
195
        if (null === $this->id) {
196
            static::$idGenerator += 1;
197
            $this->id = static::$idGenerator;
198
        }
199
        return $this->id;
200
    }
201
}
202