src/Certificate/CertificateType.php
private function protect()
    {
        if (!in_array($this->certificateType, self::allAsString(), true)) {
            throw new \InvalidArgumentException(sprintf('Invalid certificate type %s', $this->certificateType));
        }
    }
private function protect()
    {
        if (!in_array($this->certificateType, self::allAsString(), true)) {
            throw new \InvalidArgumentException(sprintf('Invalid certificate type %s', $this->certificateType));
        }
    }
private function protect ( ) { if ( ! in_array ( $ this -> certificateType , self :: allAsString ( ) , true ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid certificate type %s' , $ this -> certificateType ) ) ; } }
Check if the certificateType exists in our list
Check if the certificateType exists in our list