Skip to content

1.7 Release

Compare
Choose a tag to compare
@ihorchepurnyi ihorchepurnyi released this 09 Jan 22:51
· 8 commits to master since this release
  1. Updated Readme
  2. Added __callStatic and __toString func, now you can create enum object as follows:
$status = PostStatus::PENDING();

Also, you can echo $status, it will display the enum value (value of the constant)

$status = PostStatus::PENDING();
echo $status;