Skip to content

Commit

Permalink
add: Ability to get underlying object
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbruce committed May 29, 2023
1 parent 8feaeb5 commit a76ae72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ObjectsFromJson/PrivateObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function hasProperty(string $property): bool
return property_exists($object, $property);
}

private function object(): StdClass
public function object(): StdClass
{
if (isset($this->object) === false) {
$json = $this->publicJson->toString();
Expand Down
2 changes: 1 addition & 1 deletion src/ObjectsFromJson/PublicMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function hasProperty(string $property): bool
return property_exists($object, $property);
}

private function object(): StdClass
public function object(): StdClass
{
if (isset($this->object) === false) {
$json = $this->publicMeta->toString();
Expand Down
2 changes: 1 addition & 1 deletion src/ObjectsFromJson/PublicObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function hasProperty(string $property): bool
return property_exists($object, $property);
}

private function object(): StdClass
public function object(): StdClass
{
if (isset($this->object) === false) {
$json = $this->publicJson->toString();
Expand Down

0 comments on commit a76ae72

Please sign in to comment.