<?php
namespace App\Entity;
use App\Repository\ContactInvestissementImmoPropertyChargeRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ContactInvestissementImmoPropertyChargeRepository::class)]
class ContactInvestissementImmoPropertyCharge
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $name;
#[ORM\Column(type: 'string', length: 255)]
private $amount;
#[ORM\ManyToOne(targetEntity: ContactInvestissementImmoProperty::class, inversedBy: 'charges')]
private $contactInvestissementImmoProperty;
#[ORM\Column(type: 'string', length: 255)]
private $frequency;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getAmount(): ?string
{
return $this->amount;
}
public function setAmount(string $amount): self
{
$this->amount = $amount;
return $this;
}
public function getContactInvestissementImmoProperty(): ?ContactInvestissementImmoProperty
{
return $this->contactInvestissementImmoProperty;
}
public function setContactInvestissementImmoProperty(?ContactInvestissementImmoProperty $contactInvestissementImmoProperty): self
{
$this->contactInvestissementImmoProperty = $contactInvestissementImmoProperty;
return $this;
}
public function getFrequency(): ?string
{
return $this->frequency;
}
public function setFrequency(string $frequency): self
{
$this->frequency = $frequency;
return $this;
}
}