<?php
namespace App\Entity\Fielpet\View;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* EventoscriaView
*
* @ORM\Table(name="EventosCria", indexes={@ORM\Index(name="IDX_EBF39E99FB34125D", columns={"eventoId"})})
* @ORM\Entity
*/
class EventoscriaView
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="EventosCria_id_seq", allocationSize=1, initialValue=1)
*/
private $id;
/**
* @var int|null
*
* @ORM\Column(name="machos", type="integer", nullable=true)
*/
private $machos = '0';
/**
* @var int|null
*
* @ORM\Column(name="hembras", type="integer", nullable=true)
*/
private $hembras = '0';
/**
* @var int|null
*
* @ORM\Column(name="fallecidos", type="integer", nullable=true)
*/
private $fallecidos = '0';
/**
* @var \DateTime
*
* @ORM\Column(name="createdAt", type="custom_datetimetz", nullable=false)
*/
private $createdat;
/**
* @var \DateTime
*
* @ORM\Column(name="updatedAt", type="custom_datetimetz", nullable=false)
*/
private $updatedat;
/**
* @var EventosView
*
* @ORM\ManyToOne(targetEntity="EventosView")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="eventoId", referencedColumnName="id")
* })
*/
private $eventoid;
public function getId(): ?int
{
return $this->id;
}
public function getMachos(): ?int
{
return $this->machos;
}
public function setMachos(?int $machos): self
{
$this->machos = $machos;
return $this;
}
public function getHembras(): ?int
{
return $this->hembras;
}
public function setHembras(?int $hembras): self
{
$this->hembras = $hembras;
return $this;
}
public function getFallecidos(): ?int
{
return $this->fallecidos;
}
public function setFallecidos(?int $fallecidos): self
{
$this->fallecidos = $fallecidos;
return $this;
}
public function getCreatedat(): ?\DateTimeInterface
{
return $this->createdat;
}
public function setCreatedat(\DateTimeInterface $createdat): self
{
$this->createdat = $createdat;
return $this;
}
public function getUpdatedat(): ?\DateTimeInterface
{
return $this->updatedat;
}
public function setUpdatedat(\DateTimeInterface $updatedat): self
{
$this->updatedat = $updatedat;
return $this;
}
public function getEventoid(): ?EventosView
{
return $this->eventoid;
}
public function setEventoid(?EventosView $eventoid): self
{
$this->eventoid = $eventoid;
return $this;
}
}