Total Complexity | 5 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
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 | 2 | public function getImportId() |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param string $importId |
||
36 | */ |
||
37 | 3 | public function setImportId($importId) |
|
40 | 3 | } |
|
41 | |||
42 | /** |
||
43 | * @return \DateTime |
||
44 | */ |
||
45 | 1 | public function getImportedAt() |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @param \DateTime $importedAt |
||
52 | */ |
||
53 | 1 | public function setImportedAt($importedAt) |
|
56 | 1 | } |
|
57 | |||
58 | /** |
||
59 | * @return bool |
||
60 | */ |
||
61 | 1 | public function isImported() |
|
66 |