@param bool $flat

@return $this
@throws TpvException
341953
public function setMerchantDirectPayment($flat = false)
    {
        if (!is_bool($flat)) {
            throw new TpvException('Please set true or false');
        }

        $this->_setParameters['DS_MERCHANT_DIRECTPAYMENT'] = $flat;

        return $this;
    }
318947
public function usePHPSession($bool = true)
    {
        if (!isset($_SESSION)) {
            session_start();
        }
        $this->_phpsession = $bool;
        return $this;
    }
961261
public function setTLS($isEnabled)
    {
        if (!is_bool($isEnabled)) {
            throw new InvalidArgumentException(
                sprintf('%s only accepts a boolean', __FUNCTION__)
            );
        }

        $this->tls = (bool)$isEnabled;

        return $this;
    }
124044
public function setSalt($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->salt !== $v) {
            $this->salt = $v;
            $this->modifiedColumns[] = UserPeer::SALT;
        }


        return $this;
    }
1006228
public function setApiversion($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->apiversion !== $v) {
            $this->apiversion = $v;
            $this->modifiedColumns[] = RemoteHistoryContaoPeer::APIVERSION;
        }


        return $this;
    }
1156607
public function setNpcheckpoints($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->npcheckpoints !== $v) {
            $this->npcheckpoints = $v;
            $this->modifiedColumns[MapTableMap::COL_NPCHECKPOINTS] = true;
        }

        return $this;
    }
1137858
public function getContext($flattened = false)
    {
        $result = [];
        if ($flattened) {
            $this->flattenArray($this->context, $result);
        } else {
            $result = $this->context;
        }

        return $result;
    }
511007
public function setActive($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->active !== $v) {
            $this->active = $v;
            $this->modifiedColumns[SmartyFilterTableMap::ACTIVE] = true;
        }


        return $this;
    }
672375
public function ifTrue($bool)
    {
        if (null !== $this->apply) {
            throw new \RuntimeException('Cannot nest ifTrue or ifFalse call');
        }

        $this->apply = (true === $bool);

        return $this;
    }
559947
public function setPartId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->part_id !== $v) {
            $this->part_id = $v;
            $this->modifiedColumns[SkillPartTableMap::COL_PART_ID] = true;
        }

        if ($this->aSkillRelatedByPartId !== null && $this->aSkillRelatedByPartId->getId() !== $v) {
            $this->aSkillRelatedByPartId = null;
        }

        return $this;
    }
1345947
private function setDefaultsEnabled(bool $defaultsEnabled): self
    {
        $this->updatePropertyValue(
            DefaultsEnabledFieldInterface::PROP_DEFAULTS_ENABLED,
            $defaultsEnabled
        );

        return $this;
    }
1158606
public function setMerchantData($merchantdata='')
    {
        if ($this->isEmpty($merchantdata)) {
            throw new TpvException('Add merchant data');
        }

        $this->_setParameters['DS_MERCHANT_MERCHANTDATA'] = trim($merchantdata);

        return $this;
    }
462564
public function setPHP($v)
    {
        if ($this->php_unserialized !== $v) {
            $this->php_unserialized = $v;
            $this->php = serialize($v);
            $this->modifiedColumns[] = RemoteHistoryContaoPeer::PHP;
        }


        return $this;
    }
897670
public function withPolicyMappingInhibit(bool $flag): self
    {
        $obj = clone $this;
        $obj->_policyMappingInhibit = $flag;
        return $obj;
    }
503464
public function disableCreatingCheck(bool $disable = true)
    {
        $this->builder()->getFooter()->disableCreatingCheck($disable);

        return $this;
    }
1170706
public function setItalic($pValue = false) {
		if ($pValue == '') {
			$pValue = false;
		}
		if ($this->_isSupervisor) {
			$styleArray = $this->getStyleArray(array('italic' => $pValue));
			$this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
		} else {
			$this->_italic = $pValue;
		}
		return $this;
	}
782227
public function setDealerId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->dealer_id !== $v) {
            $this->dealer_id = $v;
            $this->modifiedColumns[DealerProductVersionTableMap::DEALER_ID] = true;
        }


        return $this;
    }