Completed
Push — master ( 0c5536...d4f264 )
by
unknown
15s queued 10s
created

ImportableTrait   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 30%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 48
ccs 3
cts 10
cp 0.3
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getImportId() 0 4 1
A getImportedAt() 0 4 1
A setImportedAt() 0 4 1
A setImportId() 0 4 1
1
<?php
2
3
namespace Smart\EtlBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Nicolas Bastien <[email protected]>
9
 */
10
trait ImportableTrait
11
{
12
    /**
13
     * Store id for remote source, use this as identifiant to make reference in import scripts.
14
     * @var string
15
     *
16
     * @ORM\Column(type="string", length=100, nullable=true)
17
     */
18
    protected $importId;
19
20
    /**
21
     * @var \DateTime
22
     * @ORM\Column(type="datetime", nullable=true)
23
     */
24
    protected $importedAt;
25
26
    /**
27
     * @return string
28
     */
29
    public function getImportId()
30
    {
31
        return $this->importId;
32
    }
33
34
    /**
35
     * @param string $importId
36
     */
37 1
    public function setImportId($importId)
38
    {
39 1
        $this->importId = $importId;
40 1
    }
41
42
    /**
43
     * @return \DateTime
44
     */
45
    public function getImportedAt()
46
    {
47
        return $this->importedAt;
48
    }
49
50
    /**
51
     * @param \DateTime $importedAt
52
     */
53
    public function setImportedAt($importedAt)
54
    {
55
        $this->importedAt = $importedAt;
56
    }
57
}
58