AcmeClient.php
private function getResourceAccount()
    {
        if (!$this->account) {
            $payload = [
                'onlyReturnExisting' => true,
            ];

            $this->requestResource('POST', ResourcesDirectory::NEW_ACCOUNT, $payload);
            $this->account = $this->getHttpClient()->getLastLocation();
        }

        return $this->account;
    }
private function getResourceAccount()
    {
        if (!$this->account) {
            $payload = [
                'onlyReturnExisting' => true,
            ];

            $this->requestResource('POST', ResourcesDirectory::NEW_ACCOUNT, $payload);
            $this->account = $this->getHttpClient()->getLastLocation();
        }

        return $this->account;
    }
private function getResourceAccount ( ) { if ( ! $ this -> account ) { $ payload = [ 'onlyReturnExisting' => true , ] ; $ this -> requestResource ( 'POST' , ResourcesDirectory :: NEW_ACCOUNT , $ payload ) ; $ this -> account = $ this -> getHttpClient ( ) -> getLastLocation ( ) ; } return $ this -> account ; }
Retrieve the resource account.

@return string
Retrieve the resource account .