| 1 | <?php |
||
| 6 | trait RefPart { |
||
| 7 | |||
| 8 | /** @var string */ |
||
| 9 | private $ref; |
||
| 10 | |||
| 11 | /** @var bool */ |
||
| 12 | private $hasRef = false; |
||
| 13 | |||
| 14 | 13 | private function parseRef(Map $data) { |
|
| 18 | |||
| 19 | /** |
||
| 20 | * |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | 1 | public function getRef() { |
|
| 26 | |||
| 27 | /** |
||
| 28 | * |
||
| 29 | * @param |
||
| 30 | * $ref |
||
| 31 | */ |
||
| 32 | 1 | public function setRef($ref) { |
|
| 37 | |||
| 38 | 13 | public function hasRef() { |
|
| 41 | |||
| 42 | } |
||
| 43 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.