Completed
Pull Request — master (#10)
by Mariusz
03:23
created

IdentifierSource   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getIdentifiers() 0 3 1
A getEntityClass() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
namespace Xsolve\Associate\DoctrineOrm\Source;
4
5
class IdentifierSource
6
{
7
    /**
8
     * @var array
9
     */
10
    protected $identifiers;
11
12
    /**
13
     * @var string
14
     */
15
    protected $entityClass;
16
17
    /**
18
     * @param array  $identifiers
19
     * @param string $entityClass
20
     */
21
    public function __construct(array $identifiers, string $entityClass)
22
    {
23
        $this->identifiers = $identifiers;
24
        $this->entityClass = $entityClass;
25
    }
26
27
    /**
28
     * @return array
29
     */
30
    public function getIdentifiers(): array
31
    {
32
        return $this->identifiers;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getEntityClass(): string
39
    {
40
        return $this->entityClass;
41
    }
42
}
43