EntityInsert   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A insert() 0 5 1
1
<?php
2
3
namespace Core\Utils\EntityUtils;
4
5
use Core\DatabaseManager;
6
7
class EntityInsert
8
{
9
    public static function insert($entity)
10
    {
11
        DatabaseManager::getEntityManager()->persist($entity);
12
        DatabaseManager::getEntityManager()->flush();
13
    }
14
}