1 | <?php |
||
12 | class Tag |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $tag; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $description; |
||
23 | |||
24 | /** |
||
25 | * @var \DateTime |
||
26 | */ |
||
27 | private $firstSeen; |
||
28 | |||
29 | /** |
||
30 | * @var \DateTime |
||
31 | */ |
||
32 | private $lastSeen; |
||
33 | |||
34 | /** |
||
35 | * @param string $tag |
||
36 | * @param string $description |
||
37 | * @param \DateTime $firstSeen |
||
38 | * @param \DateTime $lastSeen |
||
39 | */ |
||
40 | public function __construct($tag, $description, \DateTime $firstSeen, \DateTime $lastSeen) |
||
47 | |||
48 | /** |
||
49 | * @param array $data |
||
50 | * |
||
51 | * @return Tag |
||
52 | */ |
||
53 | public static function create(array $data) |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getTag() |
||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getDescription() |
||
73 | } |
||
74 |