| 1 | <?php |
||
| 6 | class ActivityLog extends AbstractEntity |
||
| 7 | { |
||
| 8 | const CREATED = 'created'; |
||
| 9 | const UPDATED = 'updated'; |
||
| 10 | const DELETED = 'deleted'; |
||
| 11 | const VIEW = 'view'; |
||
| 12 | const LOGIN = 'login'; |
||
| 13 | const LOGOUT = 'logout'; |
||
| 14 | const EXECUTED = 'executed'; |
||
| 15 | const SEND = 'send'; |
||
| 16 | const UPLOAD = 'upload'; |
||
| 17 | const DOWNLOAD = 'download'; |
||
| 18 | const INFO = 'info'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $table = "activity_log"; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $columns = [ |
||
| 29 | 'action', |
||
| 30 | 'user_id', |
||
| 31 | 'description', |
||
| 32 | 'details', |
||
| 33 | 'ip_address', |
||
| 34 | 'content_type', |
||
| 35 | 'content_id', |
||
| 36 | 'created_at', |
||
| 37 | 'updated_at', |
||
| 38 | ]; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get the icon class name for the log entry's action. |
||
| 42 | * |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function getIcon() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Get the markup for the log entry's icon. |
||
| 59 | * |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | public function getIconMarkup() |
||
| 69 | } |
||
| 70 |
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.