commercetools-8.x-1.2-alpha1/src/CommercetoolsResponse.php
src/CommercetoolsResponse.php
<?php
namespace Drupal\commercetools;
/**
* Defines a CommercetoolsResponse class.
*/
class CommercetoolsResponse {
public function __construct(
protected ?array $data = NULL,
// @todo Implement this.
protected int $status = 200,
// @todo Implement this.
protected array $headers = [],
) {
}
/**
* Returns the response data.
*
* @return array|null
* The response data.
*/
public function getData() {
return $this->data;
}
}
