public function setContacts(array $contacts): SecurityTxt
    {
        if (!$this->validContacts($contacts, true)) {
            throw new Exception('Contacts array must contain well-formed e-mails and/or URLs.');
        }

        $this->contacts = $contacts;

        return $this;
    }
public function setContacts(array $contacts): SecurityTxt
    {
        if (!$this->validContacts($contacts, true)) {
            throw new Exception('Contacts array must contain well-formed e-mails and/or URLs.');
        }

        $this->contacts = $contacts;

        return $this;
    }
public function setContacts ( array $ contacts ) : SecurityTxt { if ( ! $ this -> validContacts ( $ contacts , true ) ) { throw new Exception ( 'Contacts array must contain well-formed e-mails and/or URLs.' ) ; } $ this -> contacts = $ contacts ; return $ this ; }
Set the contacts.

@param  array $contacts

@return SecurityTxt
Set the contacts .