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

SessionRepository::save()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 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