GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Pull Request — master (#6)
by Fábio Tadeu da
03:22
created

OutboxEntityPersistence   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 14
c 0
b 0
f 0
ccs 0
cts 6
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A persist() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Dsantang\DomainEventsDoctrine\OutboxEvents;
6
7
use Doctrine\ORM\EntityManager;
8
9
class OutboxEntityPersistence
10
{
11
    /** @var EntityManager */
12
    private $entityManager;
13
14
    public function __construct(EntityManager $entityManager)
15
    {
16
        $this->entityManager = $entityManager;
17
    }
18
19
    public function persist(OutboxMappedSuperclass $entity) : void
20
    {
21
        $this->entityManager->persist($entity);
22
        $this->entityManager->getUnitOfWork()->computeChangeSets();
23
    }
24
}
25