Skip to content

Commit

Permalink
feat: add __isset method
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyrisbee committed Jan 11, 2024
1 parent 8e49f57 commit ae813e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Objects/WordPressObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@ public function __get(string $key): mixed
{
return $this->_map[$key] ?? null;
}

public function __isset(string $key): bool
{
return isset($this->_map[$key]);
}
}

0 comments on commit ae813e9

Please sign in to comment.