examen MVC (model view controller)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CustomerOrder.php 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. namespace Shop\Model;
  3. class CustomerOrder {
  4. protected $id;
  5. protected $firstname;
  6. protected $lastname;
  7. protected $reference;
  8. protected $customerId;
  9. protected $subTotal;
  10. protected $vat;
  11. protected $total;
  12. public function __construct($container){
  13. $this->container = $container;
  14. }
  15. public function setId($value)
  16. {
  17. $this->id = $value;
  18. }
  19. public function getId()
  20. {
  21. return $this->id;
  22. }
  23. public function setFirstname($value)
  24. {
  25. $this->firstname = $value;
  26. }
  27. public function getFirstname()
  28. {
  29. return $this->firstname;
  30. }
  31. public function setLastName($value)
  32. {
  33. $this->lastname = $value;
  34. }
  35. public function getLastName(){
  36. return $this->lastname;
  37. }
  38. public function setRef($value)
  39. {
  40. $this->reference = $value;
  41. }
  42. public function getRef()
  43. {
  44. return $this->reference;
  45. }
  46. public function setCustomerId($value)
  47. {
  48. $this->customerId = $value;
  49. }
  50. public function getCustomerId()
  51. {
  52. return $this->customerId;
  53. }
  54. public function setSubtotal($value)
  55. {
  56. $this->subTotal = $value;
  57. }
  58. public function getSubtotal()
  59. {
  60. return $this->subTotal;
  61. }
  62. public function setVat($value)
  63. {
  64. $this->vat = $value;
  65. }
  66. public function getVat()
  67. {
  68. return $this->vat;
  69. }
  70. public function setTotal($value)
  71. {
  72. $this->total = $value;
  73. }
  74. public function getTotal()
  75. {
  76. return $this->total;
  77. }
  78. }