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

DomainFixture::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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