Completed
Push — develop ( bb6c5d...45ffdc )
by Alejandro
25s queued 12s
created

DomainFixture   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 7
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ShlinkioApiTest\Shlink\Rest\Fixtures;
6
7
use Doctrine\Common\DataFixtures\AbstractFixture;
8
use Doctrine\Persistence\ObjectManager;
9
use Shlinkio\Shlink\Core\Entity\Domain;
10
11
class DomainFixture extends AbstractFixture
12
{
13
    public function load(ObjectManager $manager): void
14
    {
15
        $orphanDomain = new Domain('this_domain_is_detached.com');
16
        $manager->persist($orphanDomain);
17
        $manager->flush();
18
    }
19
}
20