We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f9c3d6 commit 35fc1b6Copy full SHA for 35fc1b6
src/utils/json_types/JsonObject.php
@@ -49,7 +49,6 @@ public function offsetUnset($offset)
49
throw new \LogicException;
50
}
51
52
-
53
/**
54
* @return string
55
* @throws exceptions\JsonParseException
@@ -68,7 +67,6 @@ public function toJson()
68
67
return $json;
69
70
71
72
73
* @param int $errno
74
src/utils/json_types/StringOrURI.php
@@ -56,4 +56,11 @@ public function isString(){
56
public function isUri(){
57
return !(strstr($this->value, ':') === false);
58
59
+
60
+ /**
61
+ * @return string
62
+ */
63
+ public function getValue(){
64
+ return $this->isUri() ? $this->getUri() : $this->getString();
65
+ }
66
0 commit comments