<?phpnamespace App\Entity;use App\Entity\Base\AbstractTimestampableEntity;use App\Repository\CashOutRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=CashOutRepository::class) */class CashOut extends AbstractTimestampableEntity{ /** * @ORM\ManyToOne(targetEntity=Company::class, inversedBy="cashOuts") */ private $company; /** * @ORM\ManyToOne(targetEntity=Project::class, inversedBy="cashOuts") */ private $project; /** * @ORM\ManyToOne(targetEntity=CashOutType::class, inversedBy="cashOuts") * @ORM\JoinColumn(nullable=false) */ private $cashOutType; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="cashOuts") */ private $user; /** * @ORM\Column(type="decimal", precision=10, scale=2) */ private $value; /** * @ORM\Column(type="string", length=255) */ private $docNr; /** * @ORM\Column(type="date") */ private $date; /** * @ORM\Column(type="text", nullable=true) */ private $description; public function getCompany(): ?Company { return $this->company; } public function setCompany(?Company $company): self { $this->company = $company; return $this; } public function getProject(): ?Project { return $this->project; } public function setProject(?Project $project): self { $this->project = $project; return $this; } public function getCashOutType(): ?CashOutType { return $this->cashOutType; } public function setCashOutType(?CashOutType $cashOutType): self { $this->cashOutType = $cashOutType; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getValue(): ?string { return $this->value; } public function setValue(string $value): self { $this->value = $value; return $this; } public function getDocNr(): ?string { return $this->docNr; } public function setDocNr(string $docNr): self { $this->docNr = $docNr; return $this; } public function getDate(): ?\DateTimeInterface { return $this->date; } public function setDate(\DateTimeInterface $date): self { $this->date = $date; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; }}