1 | <?php |
||
11 | final class Calendar extends Component |
||
12 | { |
||
13 | /** @var array */ |
||
14 | private $events = []; |
||
15 | |||
16 | /** @var string|null */ |
||
17 | private $name; |
||
18 | |||
19 | /** @var string|null */ |
||
20 | private $description; |
||
21 | |||
22 | /** @var bool */ |
||
23 | private $withTimezone = false; |
||
24 | |||
25 | /** @var \DateInterval|null */ |
||
26 | private $refreshInterval; |
||
27 | |||
28 | /** @var string|null */ |
||
29 | private $productIdentifier; |
||
30 | |||
31 | public static function create(string $name = null): Calendar |
||
35 | |||
36 | public function __construct(string $name = null) |
||
40 | |||
41 | public function getComponentType(): string |
||
45 | |||
46 | public function getRequiredProperties(): array |
||
53 | |||
54 | public function name(string $name): Calendar |
||
60 | |||
61 | public function description(string $description): Calendar |
||
67 | |||
68 | public function productIdentifier(string $identifier): Calendar |
||
74 | |||
75 | /** |
||
76 | * @param $event \Spatie\IcalendarGenerator\Components\Event|array|Closure |
||
77 | * |
||
78 | * @return \Spatie\IcalendarGenerator\Components\Calendar |
||
79 | */ |
||
80 | public function event($event): Calendar |
||
102 | |||
103 | public function withTimezone(): Calendar |
||
109 | |||
110 | public function refreshInterval(int $minutes): Calendar |
||
116 | |||
117 | public function get(): string |
||
121 | |||
122 | protected function payload(): ComponentPayload |
||
150 | } |
||
151 |