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

        return $flags;
    }