| 1 | <?php |
||
| 16 | class Link |
||
| 17 | { |
||
| 18 | /** @var string */ |
||
| 19 | protected $title; |
||
| 20 | |||
| 21 | /** @var \DateTime */ |
||
| 22 | protected $from; |
||
| 23 | |||
| 24 | /** @var \DateTime */ |
||
| 25 | protected $to; |
||
| 26 | |||
| 27 | /** @var string */ |
||
| 28 | protected $description; |
||
| 29 | |||
| 30 | /** @var string */ |
||
| 31 | protected $address; |
||
| 32 | |||
| 33 | public function __construct(string $title, DateTime $from, DateTime $to) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param string $title |
||
| 47 | * @param \DateTime $from |
||
| 48 | * @param \DateTime $to |
||
| 49 | * |
||
| 50 | * @return static |
||
| 51 | */ |
||
| 52 | public static function create(string $title, DateTime $from, DateTime $to) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @param string $description |
||
| 59 | * |
||
| 60 | * @return $this |
||
| 61 | */ |
||
| 62 | public function description(string $description) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @param string $address |
||
| 71 | * |
||
| 72 | * @return $this |
||
| 73 | */ |
||
| 74 | public function address(string $address) |
||
| 80 | |||
| 81 | public function google(): string |
||
| 85 | |||
| 86 | public function __get($property) |
||
| 90 | } |
||
| 91 |