public function jsonSerialize()
    {
        $ret = new StdClass;
        foreach ($this->map as $key => $value) {
            $ret->$key = (bool)($this->source & $value);
        }
        return $ret;
    }
public function jsonSerialize()
    {
        $ret = new StdClass;
        foreach ($this->map as $key => $value) {
            $ret->$key = (bool)($this->source & $value);
        }
        return $ret;
    }
public function jsonSerialize ( ) { $ ret = new StdClass ; foreach ( $ this -> map as $ key => $ value ) { $ ret -> $ key = ( bool ) ( $ this -> source & $ value ) ; } return $ ret ; }
Export this bitflag as a Json object. All known bits are exported as
properties with true or false depending on their status.

@return StdClass A standard class suitable for json_encode.
Export this bitflag as a Json object . All known bits are exported as properties with true or false depending on their status .