Completed
Push — master ( 7440bd...cf598b )
by Gabriel
03:17
created

SessionRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A save() 0 5 1
1
<?php
2
3
namespace Sinergi\Users\Doctrine\Session;
4
5
use Doctrine\ORM\EntityRepository;
6
use Sinergi\Users\Session\SessionEntityInterface;
7
use Sinergi\Users\Session\SessionRepositoryInterface;
8
9
class SessionRepository extends EntityRepository implements SessionRepositoryInterface
10
{
11
    public function save(SessionEntityInterface $session)
12
    {
13
        $this->getEntityManager()->persist($session);
14
        $this->getEntityManager()->flush($session);
15
    }
16
}
17