mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
154 lines
2.8 KiB
PHP
154 lines
2.8 KiB
PHP
<?php
|
|
|
|
namespace Chill\PersonBundle\Entity\Household;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Chill\PersonBundle\Repository\Household\HouseholdMembersRepository;
|
|
use Chill\PersonBundle\Entity\Person;
|
|
use Chill\PersonBundle\Entity\Household\Household;
|
|
|
|
/**
|
|
* @ORM\Entity(repositoryClass=HouseholdMembersRepository::class)
|
|
*/
|
|
class HouseholdMembers
|
|
{
|
|
/**
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue
|
|
* @ORM\Column(type="integer")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=255, nullable=true)
|
|
*/
|
|
private $position;
|
|
|
|
/**
|
|
* @ORM\Column(type="date")
|
|
*/
|
|
private $startDate;
|
|
|
|
/**
|
|
* @ORM\Column(type="date")
|
|
*/
|
|
private $endDate;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=255, nullable=true)
|
|
*/
|
|
private $comment;
|
|
|
|
/**
|
|
* @ORM\Column(type="boolean")
|
|
*/
|
|
private $sharedHousehold;
|
|
|
|
/**
|
|
*
|
|
* @var Person
|
|
* @ORM\ManyToOne(
|
|
* targetEntity="\Chill\PersonBundle\Entity\Person"
|
|
* )
|
|
*/
|
|
private $person;
|
|
|
|
/**
|
|
*
|
|
* @var Household
|
|
* @ORM\ManyToOne(
|
|
* targetEntity="\Chill\PersonBundle\Entity\Household\Household"
|
|
* )
|
|
*/
|
|
private $household;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getPosition(): ?string
|
|
{
|
|
return $this->position;
|
|
}
|
|
|
|
public function setPosition(?string $position): self
|
|
{
|
|
$this->position = $position;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getStartDate(): ?\DateTimeInterface
|
|
{
|
|
return $this->startDate;
|
|
}
|
|
|
|
public function setStartDate(\DateTimeInterface $startDate): self
|
|
{
|
|
$this->startDate = $startDate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getEndDate(): ?\DateTimeInterface
|
|
{
|
|
return $this->endDate;
|
|
}
|
|
|
|
public function setEndDate(\DateTimeInterface $endDate): self
|
|
{
|
|
$this->endDate = $endDate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getComment(): ?string
|
|
{
|
|
return $this->comment;
|
|
}
|
|
|
|
public function setComment(?string $comment): self
|
|
{
|
|
$this->comment = $comment;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getSharedHousehold(): ?bool
|
|
{
|
|
return $this->sharedHousehold;
|
|
}
|
|
|
|
public function setSharedHousehold(bool $sharedHousehold): self
|
|
{
|
|
$this->sharedHousehold = $sharedHousehold;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getPerson(): ?Person
|
|
{
|
|
return $this->person;
|
|
}
|
|
|
|
public function setPerson(?Person $person): self
|
|
{
|
|
$this->person = $person;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getHousehold(): ?Household
|
|
{
|
|
return $this->household;
|
|
}
|
|
|
|
public function setHousehold(?Household $household): self
|
|
{
|
|
$this->household = $household;
|
|
|
|
return $this;
|
|
}
|
|
}
|