src/Entity/InvoicesOwnerData.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\InvoicesOwnerDataRepository")
  6.  */
  7. class InvoicesOwnerData
  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)
  17.      */
  18.     private $name;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $short;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $taxNumber;
  27.     /**
  28.      * @ORM\Column(type="string", length=255)
  29.      */
  30.     private $bankNumber;
  31.     /**
  32.      * @ORM\Column(type="string", length=255)
  33.      */
  34.     private $phoneNumber;
  35.     /**
  36.      * @ORM\Column(type="string", length=255, nullable=true)
  37.      */
  38.     private $bdo;
  39.     /**
  40.      * @ORM\Column(type="string", length=255)
  41.      */
  42.     private $address;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity="Invoices", fetch="EAGER", cascade={"persist"})
  45.      * @ORM\JoinColumn(name="invoice", referencedColumnName="id", onDelete="SET NULL")
  46.      */
  47.     private $invoice;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getName(): ?string
  53.     {
  54.         return $this->name;
  55.     }
  56.     public function setName(string $name): self
  57.     {
  58.         $this->name $name;
  59.         return $this;
  60.     }
  61.     public function getShort(): ?string
  62.     {
  63.         return $this->short;
  64.     }
  65.     public function setShort(? string $short): self
  66.     {
  67.         $this->short $short;
  68.         return $this;
  69.     }
  70.     public function getTaxNumber(): ?string
  71.     {
  72.         return $this->taxNumber;
  73.     }
  74.     public function setTaxNumber(string $taxNumber): self
  75.     {
  76.         $this->taxNumber $taxNumber;
  77.         return $this;
  78.     }
  79.     public function getBankNumber(): ?string
  80.     {
  81.         return $this->bankNumber;
  82.     }
  83.     public function setBankNumber(string $bankNumber): self
  84.     {
  85.         $this->bankNumber $bankNumber;
  86.         return $this;
  87.     }
  88.     public function getPhoneNumber(): ?string
  89.     {
  90.         return $this->phoneNumber;
  91.     }
  92.     public function setPhoneNumber(string $phoneNumber): self
  93.     {
  94.         $this->phoneNumber $phoneNumber;
  95.         return $this;
  96.     }
  97.     public function getAddress(): ?string
  98.     {
  99.         return $this->address;
  100.     }
  101.     public function setAddress(string $address): self
  102.     {
  103.         $this->address $address;
  104.         return $this;
  105.     }
  106.     public function getBdo(): ?string
  107.     {
  108.         return $this->bdo;
  109.     }
  110.     public function setBdo(? string $bdo): self
  111.     {
  112.         $this->bdo $bdo;
  113.         return $this;
  114.     }
  115.     public function setInvoice($invoice)
  116.     {
  117.         $this->invoice $invoice;
  118.         return $this;
  119.     }
  120. }