Guest User

Untitled

a guest
Jul 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. <?php
  2.  
  3. class Remedio {
  4.  
  5. /**
  6. * Representa a medicamento
  7. *
  8. * @var string
  9. */
  10. private $medicamento;
  11.  
  12. /**
  13. * Representa a apresentacao
  14. *
  15. * @var string
  16. */
  17. private $apresentacao;
  18.  
  19. /**
  20. * Representa a fabricante
  21. *
  22. * @var string
  23. */
  24. private $fabricante;
  25.  
  26. /**
  27. * Representa a substancia
  28. *
  29. * @var string
  30. */
  31. private $substancia;
  32.  
  33. /**
  34. * Representa a preco
  35. *
  36. * @var float
  37. */
  38. private $preco;
  39.  
  40. function __construct($medicamento = NULL, $apresentacao = NULL, $fabricante = NULL, $substancia = NULL, $preco = NULL) {
  41. $this->medicamento = $medicamento;
  42. $this->apresentacao = $apresentacao;
  43. $this->fabricante = $fabricante;
  44. $this->substancia = $substancia;
  45. $this->preco = $preco;
  46. }
  47.  
  48. function get_medicamento() {
  49. return $this->medicamento;
  50. }
  51.  
  52. function get_apresentacao() {
  53. return $this->apresentacao;
  54. }
  55.  
  56. function get_fabricante() {
  57. return $this->fabricante;
  58. }
  59.  
  60. function get_substancia() {
  61. return $this->substancia;
  62. }
  63.  
  64. function get_preco() {
  65. return $this->preco;
  66. }
  67.  
  68. function set_medicamento($v) {
  69. $this->medicamento = $v;
  70. }
  71.  
  72. function set_apresentacao($v) {
  73. $this->apresentacao = $v;
  74. }
  75.  
  76. function set_fabricante($v) {
  77. $this->fabricante = $v;
  78. }
  79.  
  80. function set_substancia($v) {
  81. $this->substancia = $v;
  82. }
  83.  
  84. function set_preco($v) {
  85. $this->preco = $v;
  86. }
  87.  
  88. }
  89.  
  90. ?>
Add Comment
Please, Sign In to add comment