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

IdentifierSource::getIdentifiers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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