for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* TechDivision\Import\Customer\Callbacks\BooleanCallback
*
* PHP version 7
* @author Tim Wagner <[email protected]>
* @copyright 2021 TechDivision GmbH <[email protected]>
* @license https://opensource.org/licenses/MIT
* @link https://github.com/techdivision/import-customer
* @link http://www.techdivision.com
*/
namespace TechDivision\Import\Customer\Callbacks;
use TechDivision\Import\Customer\Utils\ColumnKeys;
use TechDivision\Import\Callbacks\AbstractBooleanCallback;
* A callback implementation that converts the passed boolean value.
class BooleanCallback extends AbstractBooleanCallback
{
* Return's the customer email as unique identifier of the actual row.
* @return mixed The row's unique identifier
protected function getUniqueIdentifier()
return $this->getValue(ColumnKeys::EMAIL).'-'.$this->getValue(ColumnKeys::WEBSITE);
}