aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/vobject/lib/Property/ICalendar/Duration.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/vobject/lib/Property/ICalendar/Duration.php')
-rw-r--r--vendor/sabre/vobject/lib/Property/ICalendar/Duration.php28
1 files changed, 11 insertions, 17 deletions
diff --git a/vendor/sabre/vobject/lib/Property/ICalendar/Duration.php b/vendor/sabre/vobject/lib/Property/ICalendar/Duration.php
index 7b7e1ce8e..87f008160 100644
--- a/vendor/sabre/vobject/lib/Property/ICalendar/Duration.php
+++ b/vendor/sabre/vobject/lib/Property/ICalendar/Duration.php
@@ -16,8 +16,8 @@ use Sabre\VObject\Property;
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
-class Duration extends Property {
-
+class Duration extends Property
+{
/**
* In case this is a multi-value property. This string will be used as a
* delimiter.
@@ -33,13 +33,10 @@ class Duration extends Property {
* not yet done, but parameters are not included.
*
* @param string $val
- *
- * @return void
*/
- function setRawMimeDirValue($val) {
-
+ public function setRawMimeDirValue($val)
+ {
$this->setValue(explode($this->delimiter, $val));
-
}
/**
@@ -47,10 +44,9 @@ class Duration extends Property {
*
* @return string
*/
- function getRawMimeDirValue() {
-
+ public function getRawMimeDirValue()
+ {
return implode($this->delimiter, $this->getParts());
-
}
/**
@@ -61,10 +57,9 @@ class Duration extends Property {
*
* @return string
*/
- function getValueType() {
-
+ public function getValueType()
+ {
return 'DURATION';
-
}
/**
@@ -74,12 +69,11 @@ class Duration extends Property {
*
* @return \DateInterval
*/
- function getDateInterval() {
-
+ public function getDateInterval()
+ {
$parts = $this->getParts();
$value = $parts[0];
- return DateTimeParser::parseDuration($value);
+ return DateTimeParser::parseDuration($value);
}
-
}