Code Duplication    Length = 9-9 lines in 3 locations

DataMapper/DataMapper.php 3 locations

@@ 174-182 (lines=9) @@
171
     *
172
     * @return string|null
173
     */
174
    public function getIdentifier($entity)
175
    {
176
        $identifier = null;
177
        if (isset($this->mapping[$entity][self::MAPPING_KEY_IDENTIFIER])) {
178
            $identifier = $this->mapping[$entity][self::MAPPING_KEY_IDENTIFIER];
179
        }
180
181
        return $identifier;
182
    }
183
184
    /**
185
     * @param string $container
@@ 225-233 (lines=9) @@
222
     *
223
     * @return string|null
224
     */
225
    public function getTableName($entity)
226
    {
227
        $tableName = null;
228
        if (isset($this->mapping[$entity][self::MAPPING_KEY_TABLE])) {
229
            $tableName = $this->mapping[$entity][self::MAPPING_KEY_TABLE];
230
        }
231
232
        return $tableName;
233
    }
234
235
    /**
236
     * @param string $entity
@@ 240-248 (lines=9) @@
237
     *
238
     * @return string|null
239
     */
240
    public function getDiscriminator($entity)
241
    {
242
        $discr = null;
243
        if (isset($this->mapping[$entity][self::MAPPING_KEY_DISCRIMINATOR])) {
244
            $discr = $this->mapping[$entity][self::MAPPING_KEY_DISCRIMINATOR];
245
        }
246
247
        return $discr;
248
    }
249
250
    /**
251
     * @param string $container