public function endEntityCertificate(): Certificate
    {
        if (!count($this->_certificates)) {
            throw new \LogicException("No certificates.");
        }
        return $this->_certificates[count($this->_certificates) - 1];
    }
public function endEntityCertificate(): Certificate
    {
        if (!count($this->_certificates)) {
            throw new \LogicException("No certificates.");
        }
        return $this->_certificates[count($this->_certificates) - 1];
    }
public function endEntityCertificate ( ) : Certificate { if ( ! count ( $ this -> _certificates ) ) { throw new \ LogicException ( "No certificates." ) ; } return $ this -> _certificates [ count ( $ this -> _certificates ) - 1 ] ; }
Get the end-entity certificate from the path.

@throws \LogicException If path is empty
@return Certificate
Get the end - entity certificate from the path .