| 1 | <?php |
||
| 15 | class JobTitleTransformer extends TransformerAbstract |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Transform object into a generic array. |
||
| 19 | * |
||
| 20 | * @param JobTitle $job_title |
||
| 21 | * |
||
| 22 | * @return array |
||
| 23 | * |
||
| 24 | * @author Bertrand Kintanar <[email protected]> |
||
| 25 | */ |
||
| 26 | public function transform(JobTitle $job_title) |
||
| 34 | } |
||
| 35 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read 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.