Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Remedio {
- /**
- * Representa a medicamento
- *
- * @var string
- */
- private $medicamento;
- /**
- * Representa a apresentacao
- *
- * @var string
- */
- private $apresentacao;
- /**
- * Representa a fabricante
- *
- * @var string
- */
- private $fabricante;
- /**
- * Representa a substancia
- *
- * @var string
- */
- private $substancia;
- /**
- * Representa a preco
- *
- * @var float
- */
- private $preco;
- function __construct($medicamento = NULL, $apresentacao = NULL, $fabricante = NULL, $substancia = NULL, $preco = NULL) {
- $this->medicamento = $medicamento;
- $this->apresentacao = $apresentacao;
- $this->fabricante = $fabricante;
- $this->substancia = $substancia;
- $this->preco = $preco;
- }
- function get_medicamento() {
- return $this->medicamento;
- }
- function get_apresentacao() {
- return $this->apresentacao;
- }
- function get_fabricante() {
- return $this->fabricante;
- }
- function get_substancia() {
- return $this->substancia;
- }
- function get_preco() {
- return $this->preco;
- }
- function set_medicamento($v) {
- $this->medicamento = $v;
- }
- function set_apresentacao($v) {
- $this->apresentacao = $v;
- }
- function set_fabricante($v) {
- $this->fabricante = $v;
- }
- function set_substancia($v) {
- $this->substancia = $v;
- }
- function set_preco($v) {
- $this->preco = $v;
- }
- }
- ?>
Add Comment
Please, Sign In to add comment