public function trustAnchorCertificate(): Certificate
    {
        if (!count($this->_certs)) {
            throw new \LogicException("No certificates.");
        }
        return $this->_certs[count($this->_certs) - 1];
    }
public function trustAnchorCertificate(): Certificate
    {
        if (!count($this->_certs)) {
            throw new \LogicException("No certificates.");
        }
        return $this->_certs[count($this->_certs) - 1];
    }
public function trustAnchorCertificate ( ) : Certificate { if ( ! count ( $ this -> _certs ) ) { throw new \ LogicException ( "No certificates." ) ; } return $ this -> _certs [ count ( $ this -> _certs ) - 1 ] ; }
Get the trust anchor certificate.

@throws \LogicException
@return Certificate
Get the trust anchor certificate .