src/Entity/Moeda.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Moeda
  6.  *
  7.  * @ORM\Table(name="moeda")
  8.  * @ORM\Entity(repositoryClass="App\Repository\MoedaRepository")
  9.  */
  10. class Moeda
  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="simbolo", type="string", length=255, nullable=true)
  25.      */
  26.     private $simbolo;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="nome", type="string", length=255, nullable=true)
  31.      */
  32.     private $nome;
  33.     /**
  34.      * @var int
  35.      *
  36.      * @ORM\Column(name="valor", type="decimal", precision=30, scale=3, nullable=true)
  37.      */
  38.     private $valor;
  39.     /**
  40.      * @return \Ramsey\Uuid\UuidInterface
  41.      */
  42.     public function getId()
  43.     {
  44.         return $this->id;
  45.     }
  46.     /**
  47.      * @param int $id
  48.      */
  49.     public function setId(int $id)
  50.     {
  51.         $this->id $id;
  52.     }
  53.     /**
  54.      * @return string
  55.      */
  56.     public function getSimbolo()
  57.     {
  58.         return $this->simbolo;
  59.     }
  60.     /**
  61.      * @return string
  62.      */
  63.     public function getSymbol()
  64.     {
  65.         return $this->simbolo;
  66.     }
  67.     /**
  68.      * @param string $simbolo
  69.      */
  70.     public function setSimbolo(string $simbolo)
  71.     {
  72.         $this->simbolo $simbolo;
  73.     }
  74.     /**
  75.      * @return string
  76.      */
  77.     public function getNome()
  78.     {
  79.         return $this->nome;
  80.     }
  81.     /**
  82.      * @return string
  83.      */
  84.     public function getName()
  85.     {
  86.         return $this->nome;
  87.     }
  88.     /**
  89.      * @param string $nome
  90.      */
  91.     public function setNome(string $nome)
  92.     {
  93.         $this->nome $nome;
  94.     }
  95.     /**
  96.      * @return int
  97.      */
  98.     public function getValor()
  99.     {
  100.         return $this->valor;
  101.     }
  102.     /**
  103.      
  104.      */
  105.     public function getValue()
  106.     {
  107.         return $this->valor;
  108.     }
  109.     /**
  110.      * @param int $valor
  111.      */
  112.     public function setValor($valor)
  113.     {
  114.         
  115.         $this->valor $valor;
  116.         
  117.     }
  118. }