1 | <?php |
||
14 | class CreateApplicationTask extends Task |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @var \App\Containers\Application\Data\Repositories\ApplicationRepository |
||
19 | */ |
||
20 | private $applicationRepository; |
||
21 | |||
22 | /** |
||
23 | * CreateApplicationTask constructor. |
||
24 | * |
||
25 | * @param \App\Containers\Application\Data\Repositories\ApplicationRepository $applicationRepository |
||
26 | */ |
||
27 | public function __construct(ApplicationRepository $applicationRepository) |
||
31 | |||
32 | /** |
||
33 | * @param $name |
||
34 | * @param $userId |
||
35 | * |
||
36 | * @return \App\Containers\Application\Models\Application|mixed |
||
37 | */ |
||
38 | public function run($name, $userId) |
||
47 | |||
48 | } |
||
49 |
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@property
annotation 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.