| Total Complexity | 5 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | trait DocumentFactoryTrait |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var SearchIntrospection |
||
| 15 | */ |
||
| 16 | protected $introspection; |
||
| 17 | /** |
||
| 18 | * @var null|ArrayList|DataList |
||
| 19 | */ |
||
| 20 | protected $items; |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $class; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function getClass(): string |
||
| 30 | { |
||
| 31 | return $this->class; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param string $class |
||
| 36 | * @return DocumentFactory |
||
| 37 | */ |
||
| 38 | public function setClass(string $class): self |
||
| 39 | { |
||
| 40 | $this->class = $class; |
||
| 41 | |||
| 42 | return $this; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return SearchIntrospection |
||
| 47 | */ |
||
| 48 | public function getIntrospection(): SearchIntrospection |
||
| 49 | { |
||
| 50 | return $this->introspection; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return ArrayList|DataList|null |
||
| 55 | */ |
||
| 56 | public function getItems() |
||
| 57 | { |
||
| 58 | return $this->items; |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param ArrayList|DataList|null $items |
||
| 63 | * @return DocumentFactory |
||
| 64 | */ |
||
| 65 | public function setItems($items): self |
||
| 70 | } |
||
| 71 | } |
||
| 72 |