src/Entity/Banco.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Banco
  6.  *
  7.  * @ORM\Table(name="banco")
  8.  * @ORM\Entity(repositoryClass="App\Repository\BancoRepository")
  9.  */
  10. class Banco
  11. {
  12.     /**
  13.      * @var \Ramsey\Uuid\UuidInterface
  14.      *
  15.      * @ORM\Id
  16.      *  @ORM\Column(type="uuid", unique=true)
  17.      * @ORM\GeneratedValue(strategy="CUSTOM")
  18.      * @ORM\CustomIdGenerator(class="Ramsey\Uuid\Doctrine\UuidGenerator")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="nome", type="string", length=255, nullable=true)
  25.      */
  26.     private $nome;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="abreviatura", type="string", length=25, nullable=true)
  31.      */
  32.     private $abreviatura;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="codigo", type="string", length=25, nullable=true)
  37.      */
  38.     private $codigo;
  39.     /**
  40.      * @ORM\ManyToOne(targetEntity="App\Entity\Pais", inversedBy="pais")
  41.      */
  42.     private $pais;
  43.     /**
  44.      * Get id
  45.      *
  46.      * @return int
  47.      */
  48.     public function getId()
  49.     {
  50.         return $this->id;
  51.     }
  52.     /**
  53.      * Set nome
  54.      *
  55.      * @param string $nome
  56.      *
  57.      * @return Banco
  58.      */
  59.     public function setNome($nome)
  60.     {
  61.         $this->nome $nome;
  62.         return $this;
  63.     }
  64.     /**
  65.      * Get nome
  66.      *
  67.      * @return string
  68.      */
  69.     public function getNome()
  70.     {
  71.         return $this->nome;
  72.     }
  73.     /**
  74.      * Set abreviatura
  75.      *
  76.      * @param string $abreviatura
  77.      *
  78.      * @return Banco
  79.      */
  80.     public function setAbreviatura($abreviatura)
  81.     {
  82.         $this->abreviatura $abreviatura;
  83.         return $this;
  84.     }
  85.     /**
  86.      * Get abreviatura
  87.      *
  88.      * @return string
  89.      */
  90.     public function getAbreviatura()
  91.     {
  92.         return $this->abreviatura;
  93.     }
  94.     /**
  95.      * Set codigo
  96.      *
  97.      * @param string $codigo
  98.      *
  99.      * @return Banco
  100.      */
  101.     public function setCodigo($codigo)
  102.     {
  103.         $this->codigo $codigo;
  104.         return $this;
  105.     }
  106.     /**
  107.      * Get codigo
  108.      *
  109.      * @return string
  110.      */
  111.     public function getCodigo()
  112.     {
  113.         return $this->codigo;
  114.     }
  115.     /**
  116.      * Set pais
  117.      *
  118.      * @param integer $pais
  119.      *
  120.      * @return Banco
  121.      */
  122.     public function setPais($pais)
  123.     {
  124.         $this->pais $pais;
  125.         return $this;
  126.     }
  127.     /**
  128.      * Get pais
  129.      *
  130.      * @return int
  131.      */
  132.     public function getPais()
  133.     {
  134.         return $this->pais;
  135.     }
  136. }