Currency.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace ModulesGarden\Servers\ZimbraEmail\Core\Models\Whmcs;
  3. use \Illuminate\Database\Eloquent\Model as EloquentModel;
  4. /**
  5. * Description of Currency
  6. *
  7. * @var id
  8. * @var code
  9. * @var prefix
  10. * @var suffix
  11. * @var format
  12. * @var rate
  13. * @var default
  14. *
  15. * @author Paweł Złamaniec <pawel.zl@modulesgarden.com>
  16. */
  17. class Currency extends EloquentModel
  18. {
  19. /**
  20. * Table name
  21. *
  22. * @var string
  23. */
  24. protected $table = 'tblcurrencies';
  25. protected $primaryKey = 'id';
  26. /**
  27. * Eloquent guarded parameters
  28. * @var array
  29. */
  30. protected $guarded = ['id'];
  31. /**
  32. * Eloquent fillable parameters
  33. * @var array
  34. */
  35. protected $fillable = ['code', 'prefix', 'suffix', 'format', 'rate', 'default'];
  36. /**
  37. * Indicates if the model should soft delete.
  38. *
  39. * @var bool
  40. */
  41. protected $softDelete = false;
  42. /**
  43. * Indicates if the model should be timestamped.
  44. *
  45. * @var bool
  46. */
  47. public $timestamps = false;
  48. public function __construct(array $attributes = [])
  49. {
  50. parent::__construct($attributes);
  51. }
  52. }