Skip to content

Commit 4aecebb

Browse files
authored
Fix doc issues
1 parent 84bb8be commit 4aecebb

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/RootedJsonData.php

+17-3
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function set($path, $value)
128128
}
129129

130130
/**
131-
* @see JsonPath\JsonObject::__get()
131+
* @see JsonPath\JsonObject::__set()
132132
*
133133
* @param mixed $path
134134
* @param mixed $value
@@ -140,13 +140,27 @@ public function __set($path, $value)
140140
return $this->data->set($path, $value);
141141
}
142142

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)
144152
{
145153
$notSmart = new JsonObject("{$this->data}");
146154
return $notSmart->get($name) ? true : false;
147155
}
148156

149-
public function getSchema() {
157+
/**
158+
* Get the JSON Schema for the JSON.
159+
*
160+
* @return string
161+
* /
162+
public function getSchema()
163+
{
150164
return $this->schema;
151165
}
152166
}

0 commit comments

Comments
 (0)