for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AmaTeam\ElasticSearch\Mapping;
use AmaTeam\ElasticSearch\API\Entity\Mapping\ClassMappingInterface;
use AmaTeam\ElasticSearch\API\Mapping\Conversion\ContextInterface;
use AmaTeam\ElasticSearch\API\Mapping\Conversion\ConverterInterface;
class Manager
{
/**
* @var ConverterInterface
*/
private $converter;
* @param ConverterInterface $converter
public function __construct(ConverterInterface $converter)
$this->converter = $converter;
}
public function convert(ClassMappingInterface $source, ContextInterface $context = null)
return $this->converter->convert($source, $context);