Skip to content

Instantly share code, notes, and snippets.

@ndzoesch
Created April 27, 2020 12:59
Show Gist options
  • Save ndzoesch/192ab3a41a1c8c11670079c526c5955e to your computer and use it in GitHub Desktop.
Save ndzoesch/192ab3a41a1c8c11670079c526c5955e to your computer and use it in GitHub Desktop.
<?php declare(strict_types=1);
namespace Shopware\Core\Checkout\Customer\SalesChannel;
use Shopware\Core\Checkout\Customer\CustomerEntity;
use Shopware\Core\System\SalesChannel\StoreApiResponse;
class CustomerResponse extends StoreApiResponse
{
/**
* @var CustomerEntity
*/
protected $object;
public function __construct(CustomerEntity $object)
{
parent::__construct($object);
}
public function getCustomer(): CustomerEntity
{
return $this->object;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment