| 1 | <?php |
||
| 15 | class Processor extends Model |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Indicates if the model should be timestamped. |
||
| 19 | * |
||
| 20 | * @var bool |
||
| 21 | */ |
||
| 22 | public $timestamps = false; |
||
| 23 | /** |
||
| 24 | * The table associated with the model. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $table = 'processors'; |
||
| 29 | /** |
||
| 30 | * The primary key column name. |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $primaryKey = 'processor_id'; |
||
| 35 | |||
| 36 | // ---- Define Helper Functions ---- |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Return Processor Description, formatted for display |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getFormattedDescription() |
||
| 61 | |||
| 62 | // ---- Accessors/Mutators ---- |
||
| 63 | |||
| 64 | |||
| 65 | // ---- Query scopes ---- |
||
| 66 | |||
| 67 | |||
| 68 | // ---- Define Relationships ---- |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Get the device this port belongs to. |
||
| 72 | * |
||
| 73 | */ |
||
| 74 | public function device() |
||
| 78 | } |
||
| 79 | |||
| 80 |
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.