File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public function set($path, $value)
128
128
}
129
129
130
130
/**
131
- * @see JsonPath\JsonObject::__get ()
131
+ * @see JsonPath\JsonObject::__set ()
132
132
*
133
133
* @param mixed $path
134
134
* @param mixed $value
@@ -140,13 +140,27 @@ public function __set($path, $value)
140
140
return $ this ->data ->set ($ path , $ value );
141
141
}
142
142
143
- public function __isset ($ name )
143
+ /**
144
+ * Check if a property or path is set.
145
+ *
146
+ * @param string $ path
147
+ * Path to check.
148
+ *
149
+ * @return bool
150
+ * /
151
+ public function __isset (string $ path )
144
152
{
145
153
$ notSmart = new JsonObject ("{$ this ->data }" );
146
154
return $ notSmart ->get ($ name ) ? true : false ;
147
155
}
148
156
149
- public function getSchema () {
157
+ /**
158
+ * Get the JSON Schema for the JSON .
159
+ *
160
+ * @return string
161
+ * /
162
+ public function getSchema ()
163
+ {
150
164
return $ this ->schema ;
151
165
}
152
166
}
You can’t perform that action at this time.
0 commit comments