for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/
namespace SprykerEco\Yves\Payone\Dependency\Client;
use Generated\Shared\Transfer\CustomerTransfer;
class PayoneToCustomerBridge implements PayoneToCustomerInterface
{
* @var \Spryker\Client\Customer\CustomerClientInterface
protected $customerClient;
* @param \Spryker\Client\Customer\CustomerClientInterface $customerClient
public function __construct($customerClient)
$this->customerClient = $customerClient;
}
* @return \Generated\Shared\Transfer\CustomerTransfer|null
public function getCustomer()
return $this->customerClient->getCustomer();
* @return bool
public function isLoggedIn()
return $this->customerClient->isLoggedIn();
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
*
* @return \Generated\Shared\Transfer\CustomerTransfer
public function getCustomerByEmail(CustomerTransfer $customerTransfer)
return $this->customerClient->getCustomerByEmail($customerTransfer);