1 | <?php |
||
18 | class Link |
||
19 | { |
||
20 | /** @var string */ |
||
21 | protected $title; |
||
22 | |||
23 | /** @var \DateTime */ |
||
24 | protected $from; |
||
25 | |||
26 | /** @var \DateTime */ |
||
27 | protected $to; |
||
28 | |||
29 | /** @var string */ |
||
30 | protected $description; |
||
31 | |||
32 | /** @var string */ |
||
33 | protected $address; |
||
34 | |||
35 | public function __construct(string $title, DateTime $from, DateTime $to) |
||
46 | |||
47 | /** |
||
48 | * @param string $title |
||
49 | * @param \DateTime $from |
||
50 | * @param \DateTime $to |
||
51 | * |
||
52 | * @return static |
||
53 | */ |
||
54 | public static function create(string $title, DateTime $from, DateTime $to) |
||
58 | |||
59 | /** |
||
60 | * @param string $description |
||
61 | * |
||
62 | * @return $this |
||
63 | */ |
||
64 | public function description(string $description) |
||
70 | |||
71 | /** |
||
72 | * @param string $address |
||
73 | * |
||
74 | * @return $this |
||
75 | */ |
||
76 | public function address(string $address) |
||
82 | |||
83 | public function google(): string |
||
87 | |||
88 | public function ics(): string |
||
92 | |||
93 | public function yahoo(): string |
||
97 | |||
98 | public function __get($property) |
||
102 | } |
||
103 |