StudentFixture::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Facile\DoctrineDDMTest\Assets\Fixture;
6
7
use Doctrine\Common\DataFixtures\AbstractFixture;
8
use Doctrine\Common\Persistence\ObjectManager;
9
use Facile\DoctrineDDMTest\Assets\Entity\Student;
10
11
class StudentFixture extends AbstractFixture
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function load(ObjectManager $manager)
17
    {
18
        $entity = new Student('student entity');
19
20
        $manager->persist($entity);
21
        $manager->flush();
22
    }
23
}
24