| @@ 53-67 (lines=15) @@ | ||
| 50 | * | |
| 51 | * @return null|string | |
| 52 | */ | |
| 53 | public function __get($property) | |
| 54 |     { | |
| 55 |         switch ($property) { | |
| 56 | case '_id': | |
| 57 | return $this->id; | |
| 58 | case '_score': | |
| 59 | return $this->score; | |
| 60 | case '_ttl': | |
| 61 | return $this->ttl; | |
| 62 | case '_parent': | |
| 63 | return $this->parent; | |
| 64 | default: | |
| 65 | return null; | |
| 66 | } | |
| 67 | } | |
| 68 | ||
| 69 | /** | |
| 70 | * Legacy property support and some special properties. | |
| @@ 55-69 (lines=15) @@ | ||
| 52 | * | |
| 53 | * @return null|string | |
| 54 | */ | |
| 55 | public function __get($property) | |
| 56 |     { | |
| 57 |         switch ($property) { | |
| 58 | case '_id': | |
| 59 | return $this->id; | |
| 60 | case '_score': | |
| 61 | return $this->score; | |
| 62 | case '_ttl': | |
| 63 | return $this->ttl; | |
| 64 | case '_parent': | |
| 65 | return $this->parent; | |
| 66 | default: | |
| 67 | return null; | |
| 68 | } | |
| 69 | } | |
| 70 | ||
| 71 | /** | |
| 72 | * Legacy property support and some special properties. | |