StudentFixture   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 7 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