Skip to content

Commit

Permalink
Merge pull request #32 from 8fold/rebuild
Browse files Browse the repository at this point in the history
add: Ability to get underlying object
  • Loading branch information
joshbruce authored May 29, 2023
2 parents a808134 + a76ae72 commit 6c292b4
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 6c292b4

Please sign in to comment.