Completed
Push — master ( d4f264...e03b67 )
by
unknown
02:07 queued 10s
created

ImportableTrait::getImportedAt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
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 1
    public function getImportId()
30
    {
31 1
        return $this->importId;
32
    }
33
34
    /**
35
     * @param string $importId
36
     */
37 2
    public function setImportId($importId)
38
    {
39 2
        $this->importId = $importId;
40 2
    }
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