CategoryFixtures   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
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 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 6 1
1
<?php
2
3
namespace KunicMarko\SonataAnnotationBundle\Features\Fixtures;
4
5
use KunicMarko\SonataAnnotationBundle\Features\Fixtures\Project\Entity\Category;
6
use Doctrine\Bundle\FixturesBundle\Fixture;
7
use Doctrine\Common\Persistence\ObjectManager;
8
9
class CategoryFixtures extends Fixture
10
{
11
    public function load(ObjectManager $manager)
12
    {
13
        $category = new Category('Dummy Category');
14
15
        $manager->persist($category);
16
        $manager->flush();
17
    }
18
}
19