Skip to content

Commit

Permalink
Added links to other examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dbalabka committed Jan 13, 2020
1 parent 81b98a8 commit be44126
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,15 @@ foreach (Action::values() as $name => $action) {
}
```

More usage examples:
* [Static constructor usage](./examples/class_static_construct.php)
* [Option enum](./examples/day.php) similar to Rust enum
* [Shape enum](./examples/shape.php) similar to Rust enum
* [Serialization restriction](./examples/serialization_php74.php)
* [Day enum](./examples/day.php)
* [Flag enum](./examples/day.php)
* [Planet enum](./examples/planet.php)

## Known issues
### Readonly Properties
In the current implementation, static property value can be occasionally replaced.
Expand Down

0 comments on commit be44126

Please sign in to comment.