1 | <?php |
||
10 | final class Calendar extends Component |
||
11 | { |
||
12 | /** @var array */ |
||
13 | private $events = []; |
||
14 | |||
15 | /** @var string|null */ |
||
16 | private $name; |
||
17 | |||
18 | /** @var string|null */ |
||
19 | private $description; |
||
20 | |||
21 | /** @var bool */ |
||
22 | private $withTimezone = false; |
||
23 | |||
24 | /** @var int|null */ |
||
25 | private $refreshInterval; |
||
26 | |||
27 | /** @var string|null */ |
||
28 | private $productIdentifier; |
||
29 | |||
30 | public static function create(string $name = null): Calendar |
||
34 | |||
35 | public function __construct(string $name = null) |
||
39 | |||
40 | public function getComponentType(): string |
||
44 | |||
45 | public function getRequiredProperties(): array |
||
52 | |||
53 | public function name(string $name): Calendar |
||
59 | |||
60 | public function description(string $description): Calendar |
||
66 | |||
67 | public function productIdentifier(string $identifier): Calendar |
||
73 | |||
74 | /** |
||
75 | * @param $event \Spatie\IcalendarGenerator\Components\Event|array|Closure |
||
76 | * |
||
77 | * @return \Spatie\IcalendarGenerator\Components\Calendar |
||
78 | */ |
||
79 | public function event($event): Calendar |
||
101 | |||
102 | public function withTimezone(): Calendar |
||
108 | |||
109 | public function refreshInterval(int $minutes): Calendar |
||
115 | |||
116 | public function get(): string |
||
120 | |||
121 | protected function payload(): ComponentPayload |
||
149 | } |
||
150 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
integer
values, zero is a special case, in particular the following results might be unexpected: