src/Entity/InvoicesPayers.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\InvoicesPayersRepository")
  6.  */
  7. class InvoicesPayers
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="string", length=255, nullable=true)
  17.      */
  18.     private $name;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $email;
  23.     /**
  24.      * @ORM\Column(type="string", length=15, nullable=true)
  25.      */
  26.     private $phone;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $taxNumber;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=true)
  33.      */
  34.     private $street;
  35.     /**
  36.      * @ORM\Column(type="string", length=5, nullable=true)
  37.      */
  38.     private $build;
  39.     /**
  40.      * @ORM\Column(type="string", length=5, nullable=true)
  41.      */
  42.     private $flat;
  43.     /**
  44.      * @ORM\Column(type="string", length=10, nullable=true)
  45.      */
  46.     private $postCode;
  47.     /**
  48.      * @ORM\Column(type="string", length=100, nullable=true)
  49.      */
  50.     private $city;
  51.     /**
  52.      * @ORM\Column(type="string", length=255, nullable=true)
  53.      */
  54.     private $country;
  55.     /**
  56.      * @ORM\Column(type="integer", nullable=true, options={"default" : 0})
  57.      */
  58.     private $notify;
  59.     /**
  60.      * @ORM\Column(type="text", nullable=true)
  61.      */
  62.     private $description;
  63. /**
  64.  * @ORM\ManyToOne(targetEntity="Invoices", inversedBy="payer", fetch="EAGER", cascade={"persist"})
  65.  * @ORM\JoinColumn(name="invoice", referencedColumnName="id", onDelete="SET NULL")
  66.  */
  67.     private $invoice;
  68.     public function getId(): ?int
  69.     {
  70.         return $this->id;
  71.     }
  72.     public function getName(): ?string
  73.     {
  74.         return $this->name;
  75.     }
  76.     public function setName(?string $name): self
  77.     {
  78.         $this->name $name;
  79.         return $this;
  80.     }
  81.     public function getEmail(): ?string
  82.     {
  83.         return $this->email;
  84.     }
  85.     public function setEmail(?string $email): self
  86.     {
  87.         $this->email $email;
  88.         return $this;
  89.     }
  90.     public function getPhone(): ?string
  91.     {
  92.         return $this->phone;
  93.     }
  94.     public function setPhone(?string $phone): self
  95.     {
  96.         $this->phone $phone;
  97.         return $this;
  98.     }
  99.     public function getTaxNumber(): ?string
  100.     {
  101.         return $this->taxNumber;
  102.     }
  103.     public function setTaxNumber(?string $taxNumber): self
  104.     {
  105.         $this->taxNumber $taxNumber;
  106.         return $this;
  107.     }
  108.     public function getStreet(): ?string
  109.     {
  110.         return $this->street;
  111.     }
  112.     public function setStreet(?string $street): self
  113.     {
  114.         $this->street $street;
  115.         return $this;
  116.     }
  117.     public function getBuild(): ?string
  118.     {
  119.         return $this->build;
  120.     }
  121.     public function setBuild(?string $build): self
  122.     {
  123.         $this->build $build;
  124.         return $this;
  125.     }
  126.     public function getFlat(): ?string
  127.     {
  128.         return $this->flat;
  129.     }
  130.     public function setFlat(?string $flat): self
  131.     {
  132.         $this->flat $flat;
  133.         return $this;
  134.     }
  135.     public function getPostCode(): ?string
  136.     {
  137.         return $this->postCode;
  138.     }
  139.     public function setPostCode(?string $postCode): self
  140.     {
  141.         $this->postCode $postCode;
  142.         return $this;
  143.     }
  144.     public function getCity(): ?string
  145.     {
  146.         return $this->city;
  147.     }
  148.     public function setCity(?string $city): self
  149.     {
  150.         $this->city $city;
  151.         return $this;
  152.     }
  153.     public function getCountry(): ?string
  154.     {
  155.         return $this->country;
  156.     }
  157.     public function setCountry(?string $country): self
  158.     {
  159.         $this->country $country;
  160.         return $this;
  161.     }
  162.     public function setInvoice($invoice)
  163.     {
  164.         $this->invoice $invoice;
  165.         return $this;
  166.     }
  167.     public function getNotify(): ?string
  168.     {
  169.         return $this->notify;
  170.     }
  171.     public function setNotify(?string $notify): self
  172.     {
  173.         $this->notify $notify;
  174.         return $this;
  175.     }
  176.     public function getDescription(): ?string
  177.     {
  178.         return $this->description;
  179.     }
  180.     public function setDescription(?string $description): self
  181.     {
  182.         $this->description $description;
  183.         return $this;
  184.     }
  185. }