| 1 | <?php |
||
| 17 | class CreateOpenTimeTrackTask extends Task |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var \App\Containers\Tracker\Data\Repositories\TimeTrackerRepository |
||
| 22 | */ |
||
| 23 | private $timeTrackerRepository; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * CloseNonClosedTimeTrackerTasks constructor. |
||
| 27 | * |
||
| 28 | * @param \App\Containers\Tracker\Data\Repositories\TimeTrackerRepository $timeTrackerRepository |
||
| 29 | */ |
||
| 30 | public function __construct(TimeTrackerRepository $timeTrackerRepository) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param \App\Containers\User\Models\User $user |
||
| 37 | * |
||
| 38 | * @return \App\Containers\Tracker\Models\TimeTracker|mixed |
||
| 39 | */ |
||
| 40 | public function run(User $user) |
||
| 52 | } |
||
| 53 |
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.