Created
April 27, 2020 12:59
-
-
Save ndzoesch/192ab3a41a1c8c11670079c526c5955e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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