Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Application\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\Entity
- */
- class Livros {
- /**
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- * @ORM\Column(type="integer")
- */
- private $isbn;
- /**
- * @ORM\Column(type="integer", length=15)
- */
- private $autor;
- /**
- * @ORM\Column(type="string", length=50)
- */
- private $titulo;
- /**
- * @ORM\Column(type="string", length=50)
- */
- private $categoria;
- /**
- * @ORM\Column(type="string", length=50)
- */
- private $editora;
- /**
- * @ORM\Column(type="string", length=50)
- */
- private $dtPublicacao;
- /**
- * @ORM\Column(type="date")
- */
- private $qtdLivros;
- /**
- * @ORM\Column(type="integer")
- */
- function getIsbn() {
- return $this->isbn;
- }
- function getAutor() {
- return $this->autor;
- }
- function getTitulo() {
- return $this->titulo;
- }
- function getCategoria() {
- return $this->categoria;
- }
- function getEditora() {
- return $this->editora;
- }
- function getDtPublicacao() {
- return $this->dtPublicacao;
- }
- function getQtdLivros() {
- return $this->qtdLivros;
- }
- function setIsbn($isbn) {
- $this->isbn = $isbn;
- }
- function setAutor($autor) {
- $this->autor = $autor;
- }
- function setTitulo($titulo) {
- $this->titulo = $titulo;
- }
- function setCategoria($categoria) {
- $this->categoria = $categoria;
- }
- function setEditora($editora) {
- $this->editora = $editora;
- }
- function setDtPublicacao($dtPublicacao) {
- $this->dtPublicacao = $dtPublicacao;
- }
- function setQtdLivros($qtdLivros) {
- $this->qtdLivros = $qtdLivros;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement