private function _prepareNameConstraints(ValidatorState $state,
        Certificate $cert): ValidatorState
    {
        $extensions = $cert->tbsCertificate()->extensions();
        if ($extensions->hasNameConstraints()) {
            $state = $this->_processNameConstraints($state, $cert);
        }
        return $state;
    }
private function _prepareNameConstraints(ValidatorState $state,
        Certificate $cert): ValidatorState
    {
        $extensions = $cert->tbsCertificate()->extensions();
        if ($extensions->hasNameConstraints()) {
            $state = $this->_processNameConstraints($state, $cert);
        }
        return $state;
    }
private function _prepareNameConstraints ( ValidatorState $ state , Certificate $ cert ) : ValidatorState { $ extensions = $ cert -> tbsCertificate ( ) -> extensions ( ) ; if ( $ extensions -> hasNameConstraints ( ) ) { $ state = $ this -> _processNameConstraints ( $ state , $ cert ) ; } return $ state ; }
Apply name constraints handling for the preparation step.

@param ValidatorState $state
@param Certificate $cert
@return ValidatorState
Apply name constraints handling for the preparation step .