hercioneto

PW1 2019 - Livros.class.php

Oct 29th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. <?php
  2.  
  3. class Livros {
  4.     private $codigo;
  5.     private $titulo;
  6.     private $autor;
  7.     private $editora;
  8.     private $ano;
  9.  
  10.     public function getCodigo(){
  11.         return $this->codigo;
  12.     }
  13.  
  14.     public function setCodigo($codigo){
  15.         $this->codigo = $codigo;
  16.     }
  17.  
  18.     public function getTitulo(){
  19.         return $this->titulo;
  20.     }
  21.  
  22.     public function setTitulo($titulo){
  23.         $this->titulo = $titulo;
  24.     }
  25.  
  26.     public function getAutor(){
  27.         return $this->autor;
  28.     }
  29.  
  30.     public function setAutor($autor){
  31.         $this->autor = $autor;
  32.     }
  33.  
  34.     public function getEditora(){
  35.         return $this->editora;
  36.     }
  37.  
  38.     public function setEditora($editora){
  39.         $this->editora = $editora;
  40.     }
  41.  
  42.     public function getAno(){
  43.         return $this->ano;
  44.     }
  45.  
  46.     public function setAno($ano){
  47.         $this->ano = $ano;
  48.     }
  49.  
  50. }
  51.  
  52. ?>
Add Comment
Please, Sign In to add comment