for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LE_ACME2\Request\Account;
use LE_ACME2\Response;
use LE_ACME2\Exception;
use LE_ACME2\Account;
class Update extends AbstractLocation {
protected $_newEmail;
public function __construct(Account $account, $newEmail) {
parent::__construct($account);
$this->_newEmail = $newEmail;
}
protected function _getPayload() : array {
return [
'contact' => $this->_buildContactPayload($this->_newEmail),
];
/**
* @throws Exception\InvalidResponse
* @throws Exception\RateLimitReached
* @throws Exception\ServiceUnavailable
*/
public function getResponse() : Response\Account\Update {
return new Response\Account\Update($this->_getRawResponse());