<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Application\Sonata\UserBundle\Entity\User;
/**
* @ORM\Entity(repositoryClass="App\Repository\RelatorioTecnicoMassaRepository")
*/
class RelatorioTecnicoMassa implements CompanyDataRestrictable
{
use BaseFranquia;
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\OrdemDeServico")
* @ORM\JoinColumn(nullable=false)
*/
private $os;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\ManyToOne(targetEntity="App\Application\Sonata\UserBundle\Entity\User", inversedBy="ordensDeServico")
* @ORM\JoinColumn(nullable=true)
*/
private $cadastradoPor;
/**
* @ORM\ManyToOne(targetEntity="App\Application\Sonata\UserBundle\Entity\User")
*/
private $userUltimaAlteracao;
public function getId(): ?int
{
return $this->id;
}
public function getOs(): ?OrdemDeServico
{
return $this->os;
}
public function setOs(?OrdemDeServico $os): self
{
$this->os = $os;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getCadastradoPor(): ?User
{
return $this->cadastradoPor;
}
public function setCadastradoPor(?User $cadastradoPor): self
{
$this->cadastradoPor = $cadastradoPor;
return $this;
}
public function getUserUltimaAlteracao(): ?User
{
return $this->userUltimaAlteracao;
}
public function setUserUltimaAlteracao(?User $userUltimaAlteracao): self
{
$this->userUltimaAlteracao = $userUltimaAlteracao;
return $this;
}
}