| 1 | <?php |
||
| 17 | class TranslatableLanguage |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var MongoId $id |
||
| 21 | */ |
||
| 22 | protected $id; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var ExtReference $ref |
||
| 26 | */ |
||
| 27 | protected $ref; |
||
| 28 | |||
| 29 | |||
| 30 | /** |
||
| 31 | * Get id |
||
| 32 | * |
||
| 33 | * @return string $id |
||
|
|
|||
| 34 | */ |
||
| 35 | public function getId() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Set ref |
||
| 42 | * |
||
| 43 | * @param ExtReference $ref value of extref |
||
| 44 | * @return self |
||
| 45 | */ |
||
| 46 | public function setRef($ref) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get ref |
||
| 54 | * |
||
| 55 | * @return ExtReference $ref |
||
| 56 | */ |
||
| 57 | public function getRef() |
||
| 61 | } |
||
| 62 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.