public function getFlags()
    {
        $flags = array();
        foreach ($this->names as $name => $bit) {
            if (($this->bitmask & $bit) === $bit) {
                $flags[] = $name;
            }
        }

        return $flags;
    }
public function getFlags()
    {
        $flags = array();
        foreach ($this->names as $name => $bit) {
            if (($this->bitmask & $bit) === $bit) {
                $flags[] = $name;
            }
        }

        return $flags;
    }
public function getFlags ( ) { $ flags = array ( ) ; foreach ( $ this -> names as $ name => $ bit ) { if ( ( $ this -> bitmask & $ bit ) === $ bit ) { $ flags [ ] = $ name ; } } return $ flags ; }
Get a list of all set flags.

@return array A list of all set flags
Get a list of all set flags .