PHP Classes

File: tests/Stubs/Permission.php

Recommend this page to a friend!
  Packages of Reinder Reinders   PHP Binary Flags   tests/Stubs/Permission.php   Download  
File: tests/Stubs/Permission.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: PHP Binary Flags
Manage a group of boolean flags using integers
Author: By
Last change:
Date: 1 month ago
Size: 243 bytes
 

Contents

Class file image Download
<?php

namespace Reinder83\BinaryFlags\Tests\Stubs;

use
Reinder83\BinaryFlags\Bits;

enum Permission: int
{
    case
CanView = Bits::BIT_1;
    case
CanBook = Bits::BIT_2;
    case
CanCancel = Bits::BIT_3;
    case
CanRefund = Bits::BIT_4;
}