for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AmaTeam\ElasticSearch\Entity;
use AmaTeam\ElasticSearch\API\Entity\EntityInterface;
use AmaTeam\ElasticSearch\API\Entity\Indexing\IndexingInterface;
use AmaTeam\ElasticSearch\API\Entity\Mapping\ClassMappingInterface;
class Entity implements EntityInterface
{
/**
* @var ClassMappingInterface
*/
private $mapping;
* @var IndexingInterface
private $indexing;
* @param ClassMappingInterface $mapping
* @param IndexingInterface $indexing
public function __construct(
ClassMappingInterface $mapping = null,
IndexingInterface $indexing = null
) {
$this->mapping = $mapping;
$this->indexing = $indexing;
}
* @return ClassMappingInterface
public function getMapping(): ?ClassMappingInterface
return $this->mapping;
* @return $this
public function setMapping(ClassMappingInterface $mapping)
return $this;
* @return IndexingInterface
public function getIndexing(): ?IndexingInterface
return $this->indexing;
public function setIndexing(IndexingInterface $indexing)