app/Entity/Schema/ORM/BillingDetails.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Sq\Entity\Schema\ORM;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity]
  5. #[ORM\Table(name'billing_details')]
  6. class BillingDetails
  7. {
  8.     /**
  9.      *
  10.      * @var int|null
  11.      */
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue(strategy'AUTO')]
  14.     #[ORM\Column(name'bill_id'type'integer'nullablefalseoptions: ['unsigned' => true])]
  15.     private $id;
  16.     /**
  17.      *
  18.      * @var Organization
  19.      */
  20.     #[ORM\OneToOne(targetEntityOrganization::class, inversedBy'billingDetails')]
  21.     #[ORM\JoinColumn(name'bill_o_id'referencedColumnName'o_id'nullablefalse)]
  22.     private $organization;
  23.     /**
  24.      * @var string|null
  25.      */
  26.     #[ORM\Column(name'bill_first_name'type'string'nullabletrue)]
  27.     private $firstName;
  28.     /**
  29.      * @var string|null
  30.      */
  31.     #[ORM\Column(name'bill_last_name'type'string'nullabletrue)]
  32.     private $lastName;
  33.     /**
  34.      *
  35.      * @var string|null
  36.      */
  37.     #[ORM\Column(name'bill_email'type'binary_aes_encrypted'nullabletrue)]
  38.     private $email;
  39.     /**
  40.      * @var string|null
  41.      */
  42.     #[ORM\Column(name'bill_country_code'type'string'length2nullabletrue)]
  43.     private $countryCode;
  44.     public function __construct(Organization $organization)
  45.     {
  46.         $this->organization $organization;
  47.     }
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getOrganization(): Organization
  53.     {
  54.         return $this->organization;
  55.     }
  56.     public function getFirstName(): ?string
  57.     {
  58.         return $this->firstName;
  59.     }
  60.     public function setFirstName(?string $firstName): self
  61.     {
  62.         $this->firstName $firstName;
  63.         return $this;
  64.     }
  65.     public function getLastName(): ?string
  66.     {
  67.         return $this->lastName;
  68.     }
  69.     public function setLastName(?string $lastName): self
  70.     {
  71.         $this->lastName $lastName;
  72.         return $this;
  73.     }
  74.     public function getEmail(): ?string
  75.     {
  76.         return $this->email;
  77.     }
  78.     public function setEmail(?string $email): self
  79.     {
  80.         $this->email $email;
  81.         return $this;
  82.     }
  83.     public function getCountryCode(): ?string
  84.     {
  85.         return $this->countryCode;
  86.     }
  87.     public function setCountryCode(?string $countryCode): self
  88.     {
  89.         $this->countryCode $countryCode;
  90.         return $this;
  91.     }
  92. }