| Total Complexity | 5 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Entity implements EntityInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var ClassMappingInterface |
||
| 15 | */ |
||
| 16 | private $mapping; |
||
| 17 | /** |
||
| 18 | * @var IndexingInterface |
||
| 19 | */ |
||
| 20 | private $indexing; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param ClassMappingInterface $mapping |
||
| 24 | * @param IndexingInterface $indexing |
||
| 25 | */ |
||
| 26 | public function __construct( |
||
| 27 | ClassMappingInterface $mapping = null, |
||
| 28 | IndexingInterface $indexing = null |
||
| 29 | ) { |
||
| 30 | $this->mapping = $mapping; |
||
| 31 | $this->indexing = $indexing; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return ClassMappingInterface |
||
| 36 | */ |
||
| 37 | public function getMapping(): ?ClassMappingInterface |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param ClassMappingInterface $mapping |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function setMapping(ClassMappingInterface $mapping) |
||
| 47 | { |
||
| 48 | $this->mapping = $mapping; |
||
| 49 | return $this; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return IndexingInterface |
||
| 54 | */ |
||
| 55 | public function getIndexing(): ?IndexingInterface |
||
| 56 | { |
||
| 57 | return $this->indexing; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param IndexingInterface $indexing |
||
| 62 | * @return $this |
||
| 63 | */ |
||
| 64 | public function setIndexing(IndexingInterface $indexing) |
||
| 68 | } |
||
| 69 | } |
||
| 70 |