| 1 | <?php |
||
| 13 | class ArchiveLinks |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var mixed $id |
||
| 18 | */ |
||
| 19 | protected $id; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var MongoId $id |
||
| 23 | */ |
||
| 24 | protected $realId; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var \DateTime $deletedDate |
||
| 28 | */ |
||
| 29 | protected $deletedDate; |
||
| 30 | |||
| 31 | |||
| 32 | /** |
||
| 33 | * @var string $type |
||
| 34 | */ |
||
| 35 | protected $type; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var extref $ref |
||
| 39 | */ |
||
| 40 | protected $ref; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get id |
||
| 44 | * |
||
| 45 | * @return string $id |
||
| 46 | */ |
||
| 47 | public function getId() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Set id |
||
| 54 | * |
||
| 55 | * @param mixed $id id |
||
| 56 | * |
||
| 57 | * @return void |
||
| 58 | */ |
||
| 59 | public function setId($id) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Get realId |
||
| 66 | * |
||
| 67 | * @return string $id |
||
|
|
|||
| 68 | */ |
||
| 69 | public function getRealId() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * Get type |
||
| 76 | * |
||
| 77 | * @return string $type |
||
| 78 | */ |
||
| 79 | public function getType() |
||
| 83 | |||
| 84 | /** |
||
| 85 | * Set type |
||
| 86 | * |
||
| 87 | * @param string $type value for type |
||
| 88 | * |
||
| 89 | * @return self |
||
| 90 | */ |
||
| 91 | public function setType($type) |
||
| 97 | |||
| 98 | |||
| 99 | /** |
||
| 100 | * Get ref |
||
| 101 | * |
||
| 102 | * @return extref $ref |
||
| 103 | */ |
||
| 104 | public function getRef() |
||
| 108 | |||
| 109 | /** |
||
| 110 | * Set ref |
||
| 111 | * |
||
| 112 | * @param extref $ref value for ref |
||
| 113 | * |
||
| 114 | * @return self |
||
| 115 | */ |
||
| 116 | public function setRef($ref) |
||
| 122 | |||
| 123 | } |
||
| 124 |
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.