Updated function parameters (#333)

* Updated function parameters

* cs
This commit is contained in:
Tobias Nyholm 2017-04-07 21:52:30 +02:00 committed by GitHub
parent f73445726f
commit 27d13d85fd

View File

@ -62,18 +62,22 @@ class Complaint extends HttpApi
}
/**
* @param string $domain Domain to create complaint for
* @param string $address Complaint address
* @param array $params optional
* @param string $domain Domain to create complaint for
* @param string $address Complaint address
* @param string $createdAt (optional) rfc2822 compliant format. (new \DateTime())->format('r')
*
* @return CreateResponse
*/
public function create($domain, $address, $code = null, $error = null, $createdAt = null)
public function create($domain, $address, $createdAt = null)
{
Assert::stringNotEmpty($domain);
Assert::stringNotEmpty($address);
Assert::stringNotEmpty($createdAt);
$params['address'] = $address;
if (null !== $createdAt) {
$params['created_at'] = $createdAt;
}
$response = $this->httpPost(sprintf('/v3/%s/complaints', $domain), $params);