| 1 | <?php |
||
| 19 | class GetGravatarImages extends Job implements ShouldQueue |
||
| 20 | { |
||
| 21 | use InteractsWithQueue, SerializesModels; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var Employee |
||
| 25 | */ |
||
| 26 | protected $employee; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Create a new job instance. |
||
| 30 | * |
||
| 31 | * @param Employee $employee |
||
| 32 | */ |
||
| 33 | public function __construct(Employee $employee) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Execute the job. |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | public function handle() |
||
| 53 | } |
||
| 54 |
Since your code implements the magic setter
_set, this function will be called for any write access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.