src/Entity/CartDomain.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CartDomainRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CartDomainRepository::class)
  7.  */
  8. class CartDomain
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=CartWebhosting::class, inversedBy="cartDomains")
  18.      */
  19.     private $cart_webhosting;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $domain_name;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $domain_tld;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $session_id;
  32.     /**
  33.      * @ORM\Column(type="decimal", precision=10, scale=2)
  34.      */
  35.     private $domain_price;
  36.     /**
  37.      * @ORM\Column(type="datetime", nullable=true)
  38.      */
  39.     private $reg_datetime;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getCartWebhosting(): ?CartWebhosting
  45.     {
  46.         return $this->cart_webhosting;
  47.     }
  48.     public function setCartWebhosting(?CartWebhosting $cart_webhosting): self
  49.     {
  50.         $this->cart_webhosting $cart_webhosting;
  51.         return $this;
  52.     }
  53.     public function getDomainName(): ?string
  54.     {
  55.         return $this->domain_name;
  56.     }
  57.     public function setDomainName(string $domain_name): self
  58.     {
  59.         $this->domain_name $domain_name;
  60.         return $this;
  61.     }
  62.     public function getDomainTld(): ?string
  63.     {
  64.         return $this->domain_tld;
  65.     }
  66.     public function setDomainTld(string $domain_tld): self
  67.     {
  68.         $this->domain_tld $domain_tld;
  69.         return $this;
  70.     }
  71.     public function getSessionId(): ?string
  72.     {
  73.         return $this->session_id;
  74.     }
  75.     public function setSessionId(string $session_id): self
  76.     {
  77.         $this->session_id $session_id;
  78.         return $this;
  79.     }
  80.     public function getDomainPrice(): ?string
  81.     {
  82.         return $this->domain_price;
  83.     }
  84.     public function setDomainPrice(string $domain_price): self
  85.     {
  86.         $this->domain_price $domain_price;
  87.         return $this;
  88.     }
  89.     public function getRegDatetime(): ?\DateTimeInterface
  90.     {
  91.         return $this->reg_datetime;
  92.     }
  93.     public function setRegDatetime(?\DateTimeInterface $reg_datetime): self
  94.     {
  95.         $this->reg_datetime $reg_datetime;
  96.         return $this;
  97.     }
  98.     public function __toString()
  99.     {
  100.         return $this->getDomainName() . '.' $this->getDomainTld();
  101.     }
  102. }