src/Eluceo/iCal/Component/TimezoneRule.php 1 location
|
@@ 64-72 (lines=9) @@
|
| 61 |
|
* |
| 62 |
|
* @throws \InvalidArgumentException |
| 63 |
|
*/ |
| 64 |
|
public function __construct($ruleType) |
| 65 |
|
{ |
| 66 |
|
$ruleType = strtoupper($ruleType); |
| 67 |
|
if ($ruleType === self::TYPE_DAYLIGHT || $ruleType === self::TYPE_STANDARD) { |
| 68 |
|
$this->type = $ruleType; |
| 69 |
|
} else { |
| 70 |
|
throw new \InvalidArgumentException('Invalid value for timezone rule type'); |
| 71 |
|
} |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
/** |
| 75 |
|
* {@inheritdoc} |
src/Eluceo/iCal/Component/Event.php 1 location
|
@@ 643-655 (lines=13) @@
|
| 640 |
|
* |
| 641 |
|
* @throws \InvalidArgumentException |
| 642 |
|
*/ |
| 643 |
|
public function setTimeTransparency($transparency) |
| 644 |
|
{ |
| 645 |
|
$transparency = strtoupper($transparency); |
| 646 |
|
if ($transparency === self::TIME_TRANSPARENCY_OPAQUE |
| 647 |
|
|| $transparency === self::TIME_TRANSPARENCY_TRANSPARENT |
| 648 |
|
) { |
| 649 |
|
$this->transparency = $transparency; |
| 650 |
|
} else { |
| 651 |
|
throw new \InvalidArgumentException('Invalid value for transparancy'); |
| 652 |
|
} |
| 653 |
|
|
| 654 |
|
return $this; |
| 655 |
|
} |
| 656 |
|
|
| 657 |
|
/** |
| 658 |
|
* @param $status |