LoadGameDateData::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 6
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
crap 2
1
<?php
2
3
namespace OSS\CoreBundle\DataFixtures\ORM;
4
5
use Doctrine\Common\DataFixtures\FixtureInterface;
6
use Doctrine\Common\Persistence\ObjectManager;
7
use OSS\CoreBundle\Entity\GameDate;
8
9
class LoadGameDateData implements FixtureInterface
10
{
11
    public function load(ObjectManager $manager)
12
    {
13
        $gameDate = new GameDate();
14
15
        $manager->persist($gameDate);
16
17
        $manager->flush();
18
    }
19
}
20