| 1 | <?php |
||
| 10 | class UserAdapter |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param User $user |
||
| 14 | * |
||
| 15 | * @return \NilPortugues\Example\Persistence\Eloquent\User |
||
| 16 | */ |
||
| 17 | public function toEloquent(User $user) |
||
| 26 | /** |
||
| 27 | * @param array $model |
||
| 28 | * |
||
| 29 | * @return \NilPortugues\Example\Domain\User |
||
| 30 | */ |
||
| 31 | public function fromEloquent(array $model) |
||
| 35 | } |
||
| 36 |
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.