public function getBooleanCode()
    {
        if ($this->code && ('true' == $this->code || true === $this->code)) {
            return '1';
        } else {
            if ('false' == $this->code || false === $this->code) {
                return '0';
            }
        }

        return $this->code;
    }