QuestFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 7 1
1
<?php
2
3
namespace Badger\Bundle\GameBundle\Factory;
4
5
use Badger\Bundle\GameBundle\Entity\Quest;
6
use Badger\Component\Game\Factory\SimpleFactoryInterface;
7
use Doctrine\Common\Collections\ArrayCollection;
8
9
/**
10
 * Quest Factory
11
 *
12
 * @author  Olivier Soulet <[email protected]>
13
 * @license http://opensource.org/licenses/MIT The MIT License (MIT)
14
 */
15
class QuestFactory implements SimpleFactoryInterface
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function create()
21
    {
22
        $quest = new Quest();
23
        $quest->setTags(new ArrayCollection());
24
25
        return $quest;
26
    }
27
}
28