Skip to content

Commit

Permalink
added checkAnyFlags example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
reinder83 committed Jun 12, 2017
1 parent bd759c9 commit 84b7555
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ var_export($exampleFlags->checkFlag(ExampleFlags::FOO | ExampleFlags::BAR));

var_export($exampleFlags->checkFlag(ExampleFlags::FOO | ExampleFlags::BAZ, false));
// true because one of the flags is set (FOO)

// alias of the above method
var_export($exampleFlags->checkAnyFlag(ExampleFlags::FOO | ExampleFlags::BAZ));
// true

```

##### Flag names example
Expand Down

0 comments on commit 84b7555

Please sign in to comment.