From 66effbfe0827fc61fff6d248797a894213ad20d6 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 28 May 2016 17:46:24 +0200 Subject: upgrade to sabre32 --- vendor/sabre/vobject/lib/Property/Integer.php | 72 +++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 vendor/sabre/vobject/lib/Property/Integer.php (limited to 'vendor/sabre/vobject/lib/Property/Integer.php') diff --git a/vendor/sabre/vobject/lib/Property/Integer.php b/vendor/sabre/vobject/lib/Property/Integer.php new file mode 100644 index 000000000..db000156f --- /dev/null +++ b/vendor/sabre/vobject/lib/Property/Integer.php @@ -0,0 +1,72 @@ +setValue((int)$val); + + } + + /** + * Returns a raw mime-dir representation of the value. + * + * @return string + */ + public function getRawMimeDirValue() { + + return $this->value; + + } + + /** + * Returns the type of value. + * + * This corresponds to the VALUE= parameter. Every property also has a + * 'default' valueType. + * + * @return string + */ + public function getValueType() { + + return "INTEGER"; + + } + + /** + * Returns the value, in the format it should be encoded for json. + * + * This method must always return an array. + * + * @return array + */ + public function getJsonValue() { + + return array((int)$this->getValue()); + + } +} -- cgit v1.2.3