for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* TechDivision\Import\Category\Callbacks\DisplayModeCallback
*
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* PHP version 5
* @author Tim Wagner <[email protected]>
* @copyright 2016 TechDivision GmbH <[email protected]>
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @link https://github.com/techdivision/import-category
* @link http://www.techdivision.com
*/
namespace TechDivision\Import\Category\Callbacks;
* A callback implementation that converts the passed display mode.
class DisplayModeCallback extends AbstractCategoryImportCallback
{
* Will be invoked by a observer it has been registered for.
* @param mixed $value The value to handle
* @return mixed The modified value
* @see \TechDivision\Import\Category\Callbacks\CategoryImportCallbackInterface::handle()
public function handle($value)
return $this->getSubject()->getDisplayModeByValue($value);
}