| 1 | <?php |
||
| 8 | class ModelHasUpdated |
||
| 9 | { |
||
| 10 | use SerializesModels; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Eloquent model object. |
||
| 14 | * |
||
| 15 | * @var \Illuminate\Database\Eloquent\Model |
||
| 16 | */ |
||
| 17 | protected $model; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Event constructor. |
||
| 21 | * |
||
| 22 | * @param \Illuminate\Database\Eloquent\Model $model |
||
| 23 | */ |
||
| 24 | public function __construct(Model $model) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Model accessor. |
||
| 31 | * |
||
| 32 | * @return Illuminate\Database\Eloquent\Model |
||
|
|
|||
| 33 | */ |
||
| 34 | public function model() |
||
| 38 | } |
||
| 39 |
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.