aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/vobject/lib/Property/ICalendar/Duration.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-04-25 08:52:50 +0200
committerMario Vavti <mario@mariovavti.com>2019-04-25 08:52:50 +0200
commite779335d060b3a51d6a144d23af4097ae6801473 (patch)
tree2427765313f715a0e5b48228abe5200cb82b787f /vendor/sabre/vobject/lib/Property/ICalendar/Duration.php
parente937e8fff96a935b14a479c062f6b0d00b90b99d (diff)
downloadvolse-hubzilla-e779335d060b3a51d6a144d23af4097ae6801473.tar.gz
volse-hubzilla-e779335d060b3a51d6a144d23af4097ae6801473.tar.bz2
volse-hubzilla-e779335d060b3a51d6a144d23af4097ae6801473.zip
update composer libs
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);
}
-
}