ORMPersistentCommandRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 4 1
1
<?php
2
3
declare (strict_types = 1);
4
5
namespace HMLB\DDDBundle\Doctrine\ORM;
6
7
use HMLB\DDD\Entity\Identity;
8
use HMLB\DDD\Message\Command\PersistentCommand;
9
use HMLB\DDDBundle\Repository\PersistentCommandRepository;
10
11
/**
12
 * ORMCommandRepository.
13
 *
14
 * @author Hugues Maignol <[email protected]>
15
 */
16
class ORMPersistentCommandRepository extends AbstractOrmPersistentMessageRepository implements PersistentCommandRepository
17
{
18
    /**
19
     * @param Identity $identity
20
     *
21
     * @return PersistentCommand
22
     */
23
    public function get(Identity $identity)
24
    {
25
        return $this->em->getRepository(PersistentCommand::class)->find($identity);
26
    }
27
}
28