[Pkg-owncloud-commits] [php-sabre-vobject] 156/341: Setter before getter.
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 470efcd435aa08b8ac7933c6f091b2c712acbef0
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Mon Jan 19 14:37:41 2015 +0100
Setter before getter.
---
lib/Property.php | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/lib/Property.php b/lib/Property.php
index 6cbcc09..bd03dc1 100644
--- a/lib/Property.php
+++ b/lib/Property.php
@@ -322,29 +322,29 @@ abstract class Property extends Node {
}
/**
- * Returns the value, in the format it should be encoded for XML.
+ * Sets the XML value, as it would appear in a xCard or xCal object.
*
- * This method must always return an array.
+ * The value must always be an array.
*
- * @return array
+ * @param array $value
+ * @return void
*/
- function getXmlValue() {
+ function setXmlValue(array $value) {
- return $this->getJsonValue();
+ $this->setJsonValue($value);
}
/**
- * Sets the XML value, as it would appear in a xCard or xCal object.
+ * Returns the value, in the format it should be encoded for XML.
*
- * The value must always be an array.
+ * This method must always return an array.
*
- * @param array $value
- * @return void
+ * @return array
*/
- function setXmlValue(array $value) {
+ function getXmlValue() {
- $this->setJsonValue($value);
+ return $this->getJsonValue();
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list