DNProject::getPublicKeyPath PHP Method

getPublicKeyPath() public method

This returns that path of the public key if a key directory is set. It doesn't check whether the file exists.
public getPublicKeyPath ( ) : string | null
return string | null
    public function getPublicKeyPath()
    {
        if ($privateKey = $this->getPrivateKeyPath()) {
            return $privateKey . '.pub';
        }
        return null;
    }