public function withValidity(AttCertValidityPeriod $validity): self
    {
        $obj = clone $this;
        $obj->_attrCertValidityPeriod = $validity;
        return $obj;
    }
public function withValidity(AttCertValidityPeriod $validity): self
    {
        $obj = clone $this;
        $obj->_attrCertValidityPeriod = $validity;
        return $obj;
    }
public function withValidity ( AttCertValidityPeriod $ validity ) : self { $ obj = clone $ this ; $ obj -> _attrCertValidityPeriod = $ validity ; return $ obj ; }
Get self with validity period.

@param AttCertValidityPeriod $validity
@return self
Get self with validity period .