OtherChoiceOptionRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 8
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 5 1
1
<?php
2
3
namespace SumoCoders\FrameworkCoreBundle\Repository;
4
5
use Doctrine\ORM\EntityRepository;
6
use SumoCoders\FrameworkCoreBundle\Entity\OtherChoiceOption;
7
8
final class OtherChoiceOptionRepository extends EntityRepository
9
{
10
    public function create(OtherChoiceOption $otherChoiceOption)
11
    {
12
        $this->getEntityManager()->persist($otherChoiceOption);
13
        $this->getEntityManager()->flush($otherChoiceOption);
14
    }
15
}
16