Swift_Signers_DKIMSigner::setBodySignedLen PHP Method

setBodySignedLen() public method

Set the length of the body to sign.
public setBodySignedLen ( mixed $len ) : Swift_Signers_DKIMSigner
$len mixed (bool or int)
return Swift_Signers_DKIMSigner
    public function setBodySignedLen($len)
    {
        if ($len === true) {
            $this->showLen = true;
            $this->maxLen = PHP_INT_MAX;
        } elseif ($len === false) {
            $this->showLen = false;
            $this->maxLen = PHP_INT_MAX;
        } else {
            $this->showLen = true;
            $this->maxLen = (int) $len;
        }
        return $this;
    }