public function setDisclosure(string $disclosure): SecurityTxt
    {
        if (!$this->validDisclosure($disclosure)) {
            throw new Exception('Disclosure policy must be either "full", "partial", or "none".');
        }

        $this->disclosure = $disclosure;

        return $this;
    }
public function setDisclosure(string $disclosure): SecurityTxt
    {
        if (!$this->validDisclosure($disclosure)) {
            throw new Exception('Disclosure policy must be either "full", "partial", or "none".');
        }

        $this->disclosure = $disclosure;

        return $this;
    }
public function setDisclosure ( string $ disclosure ) : SecurityTxt { if ( ! $ this -> validDisclosure ( $ disclosure ) ) { throw new Exception ( 'Disclosure policy must be either "full", "partial", or "none".' ) ; } $ this -> disclosure = $ disclosure ; return $ this ; }
Set the disclosure policy.

@param  string $disclosure

@return \AustinHeap\Security\Txt\SecurityTxt
Set the disclosure policy .