1 | <?php |
||
10 | class Location |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | protected $fillable = [ |
||
16 | 'lon', |
||
17 | 'lat' |
||
18 | ]; |
||
19 | |||
20 | /** |
||
21 | * @param array $attributes |
||
22 | * @return void |
||
|
|||
23 | */ |
||
24 | public function __construct(array $attributes = []) |
||
28 | |||
29 | /** |
||
30 | * Fill the model with an array of attributes. |
||
31 | * |
||
32 | * @param array $attributes |
||
33 | * @return $this |
||
34 | * |
||
35 | */ |
||
36 | public function fill(array $attributes) |
||
46 | |||
47 | } |
||
48 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.