Property | Type | Description | |
---|---|---|---|
$flags | |||
$full | set of flag bit masks | ||
$value | maximum integer value of the bitmask |
Method | Description | |
---|---|---|
__construct ( array $flags = null, integer $value = null ) | Constructor. Takes an optional array parameter of bit flags to mask on. | |
__get ( integer $bit ) : boolean | Magic getter method for flag status | |
__isset ( string $flag ) : boolean | Magic check-whether-flag-exists method | |
__set ( string $bit, mixed $on ) : mixed | Magic setter method for flag values. | |
__tostring ( ) : string | Convert this Bitmask into a string, based ont he flags that are set |
public __construct ( array $flags = null, integer $value = null ) | ||
$flags | array | An array of flag names |
$value | integer | (optional) a combined bitmask value |
public __tostring ( ) : string | ||
return | string | Converted bitmask value |