<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Modes de paiement
*
* @ORM\Table(name="payment_type")
* @ORM\Entity
*/
class PaymentType
{
const NAME_SEPA = 'sepa';
const NAME_CB = 'CB';
const NAME_CHEQUE = 'cheque';
const NAME_ESPECES = 'especes';
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string",nullable=false)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="compteComptable", type="string", nullable=false)
*/
private $compteComptable;
/**
* @var BankAccount
*
* @ORM\ManyToOne(targetEntity="BankAccount")
* @ORM\JoinColumn(name="bankAccount_id", referencedColumnName="id")
*/
private $bankAccount;
/**
* @var Company
*
* @ORM\ManyToOne(targetEntity="Company", inversedBy="payments")
* @ORM\JoinColumn(name="company_id", referencedColumnName="id")
*/
private $company;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return string
*/
public function getName(): ?string
{
return $this->name;
}
/**
* @param string $name
*/
public function setName(string $name): void
{
$this->name = $name;
}
/**
* @return Contract
*/
public function getBankAccount(): ?BankAccount
{
return $this->bankAccount;
}
/**
* @param Contract $bankAccount
*/
public function setBankAccount(BankAccount $bankAccount): void
{
$this->bankAccount = $bankAccount;
}
/**
* @return string
*/
public function getCompteComptable(): ?string
{
return $this->compteComptable;
}
/**
* @param string $compteComptable
*/
public function setCompteComptable(string $compteComptable): void
{
$this->compteComptable = $compteComptable;
}
/**
* @return Company
*/
public function getCompany(): Company
{
return $this->company;
}
/**
* @param Company $company
*/
public function setCompany(Company $company): void
{
$this->company = $company;
}
}