fXmlRpc\CodeGenerator\XmlReaderParserBitmaskGenerator::createBitmaskVariable PHP Method

createBitmaskVariable() private method

private createBitmaskVariable ( $type, $bitmask, $prefix = '' )
    private function createBitmaskVariable($type, $bitmask, $prefix = '')
    {
        $variableName = preg_match('/^\\w+[\\d\\w_]*$/', $type) ? 'static $' . $prefix . $type : '${\'' . $prefix . $type . '\'}';
        $this->values[$type] = $bitmask;
        return $variableName . ' = 0b' . sprintf('%0' . $this->typeCount . 'b', $this->values[$type]) . ';';
    }