src/Entity/RelatorioTecnicoMassa.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Application\Sonata\UserBundle\Entity\User;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\RelatorioTecnicoMassaRepository")
  7.  */
  8. class RelatorioTecnicoMassa implements CompanyDataRestrictable
  9. {
  10.     use BaseFranquia;
  11.      
  12.     /**
  13.      * @ORM\Id()
  14.      * @ORM\GeneratedValue()
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity="App\Entity\OrdemDeServico")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $os;
  23.     /**
  24.      * @ORM\Column(type="datetime")
  25.      */
  26.     private $createdAt;
  27.     
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity="App\Application\Sonata\UserBundle\Entity\User", inversedBy="ordensDeServico")
  30.      * @ORM\JoinColumn(nullable=true)
  31.      */
  32.     private $cadastradoPor;
  33.     
  34.    /**
  35.      * @ORM\ManyToOne(targetEntity="App\Application\Sonata\UserBundle\Entity\User")
  36.      */
  37.     private $userUltimaAlteracao;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getOs(): ?OrdemDeServico
  43.     {
  44.         return $this->os;
  45.     }
  46.     public function setOs(?OrdemDeServico $os): self
  47.     {
  48.         $this->os $os;
  49.         return $this;
  50.     }
  51.     public function getCreatedAt(): ?\DateTimeInterface
  52.     {
  53.         return $this->createdAt;
  54.     }
  55.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  56.     {
  57.         $this->createdAt $createdAt;
  58.         return $this;
  59.     }
  60.     
  61.     public function getCadastradoPor(): ?User
  62.     {
  63.         return $this->cadastradoPor;
  64.     }
  65.     public function setCadastradoPor(?User $cadastradoPor): self
  66.     {
  67.         $this->cadastradoPor $cadastradoPor;
  68.         return $this;
  69.     }
  70.     
  71.     public function getUserUltimaAlteracao(): ?User
  72.     {
  73.         return $this->userUltimaAlteracao;
  74.     }
  75.     public function setUserUltimaAlteracao(?User $userUltimaAlteracao): self
  76.     {
  77.         $this->userUltimaAlteracao $userUltimaAlteracao;
  78.         return $this;
  79.     }
  80. }