Skip to content

Commit

Permalink
Minor doc tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ogizanagi committed Apr 16, 2022
1 parent 98a03f3 commit b950578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ $permissions = FlagBag::from(Permissions::Execute, Permissions::Write, Permissio
$permissions = new FlagBag(Permissions::class, 7);
// where 7 is the "encoded" bits value for:
Permissions::Execute->value | Permissions::Write->value | Permissions::Read->value // 7
// or:
$permissions = FlagBag::fromAll(Permissions::class); // which initiates bag with all possible values
// or initiate a bag with all its possible values using:
$permissions = FlagBag::fromAll(Permissions::class);
$permissions = $permissions->withoutFlags(Permissions::Execute); // Returns an instance without "execute" flag
Expand Down

0 comments on commit b950578

Please sign in to comment.