for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jh\DataImportMagento\ValueConverter;
use Ddeboer\DataImport\Exception\UnexpectedTypeException;
use Ddeboer\DataImport\ValueConverter\ValueConverterInterface;
/**
* Class StrtolowerValueConverter
* @package Jh\DataImportMagento\ValueConverter
* @author Aydin Hassan <[email protected]>
*/
class StrtolowerValueConverter implements ValueConverterInterface
{
* @param string $input
* @return string
* @throws UnexpectedTypeException
public function convert($input)
if (!is_string($input)) {
throw new UnexpectedTypeException($input, 'string');
}
return strtolower($input);