| 1 | <?php |
||
| 7 | trait Relationshipable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var ElasticsearchModel |
||
| 11 | */ |
||
| 12 | protected $_parent; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var mixed |
||
| 16 | */ |
||
| 17 | protected $_parentId; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return mixed |
||
| 21 | */ |
||
| 22 | public function getParentId() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param mixed $id |
||
| 29 | */ |
||
| 30 | public function setParentId($id) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Return parent document. |
||
| 37 | * |
||
| 38 | * @return static |
||
| 39 | */ |
||
| 40 | public function getParent() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Set parent document. |
||
| 47 | * |
||
| 48 | * @param ElasticsearchModel $parent |
||
| 49 | */ |
||
| 50 | public function setParent(ElasticsearchModel $parent) |
||
| 55 | } |