src/Entity/Order.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping\Index;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use App\Repository\OrderRepository;
  7. #[ORM\Entity(repositoryClassOrderRepository::class)]
  8. #[ORM\Table(name'`order`')]
  9. #[Index(name"order_user_idx"columns: ["user"])]
  10. #[Index(name"order_tstamp"columns: ["tstamp"])]
  11. #[Index(name"order_status"columns: ["status"])]
  12. #[Index(name"order_opt"columns: ["opt"])]
  13. class Order implements EntityInterface
  14. {
  15.     #[ORM\Id]
  16.     #[ORM\GeneratedValue]
  17.     #[ORM\Column]
  18.     private ?int $id null;
  19.     #[ORM\Column]
  20.     private ?int $id2 0;
  21.     #[ORM\Column(type'integer')]
  22.     private int $user 0;
  23.     #[ORM\Column(type'integer')]
  24.     private int $referal 0;
  25.     #[ORM\Column(type'integer')]
  26.     private int $manager 0;
  27.     #[ORM\Column(type'integer')]
  28.     private int $tstamp 0;
  29.     #[ORM\Column(type'integer')]
  30.     private int $esystem 0;
  31.     #[ORM\Column(type'integer')]
  32.     private int $delivery 0;
  33.     #[ORM\Column(type'integer')]
  34.     private int $subdelivery 0;
  35.     #[ORM\Column(typeTypes::SMALLINT)]
  36.     private int $status 0;
  37.     #[ORM\Column(length255)]
  38.     private string $name '';
  39.     #[ORM\Column(length255)]
  40.     private string $addr '';
  41.     #[ORM\Column(length255)]
  42.     private string $city '';
  43.     #[ORM\Column(length255)]
  44.     private string $postcode '';
  45.     #[ORM\Column(length255)]
  46.     private string $state '';
  47.     #[ORM\Column(length255)]
  48.     private string $state_code '';
  49.     #[ORM\Column(length255)]
  50.     private string $country '';
  51.     #[ORM\Column(length255)]
  52.     private string $phone '';
  53.     #[ORM\Column(length255)]
  54.     private string $email '';
  55.     #[ORM\Column(length255)]
  56.     private string $ip '';
  57.     #[ORM\Column(length255)]
  58.     private string $payment_method '';
  59.     #[ORM\Column(type'integer')]
  60.     private int $created 0;
  61.     #[ORM\Column(length255)]
  62.     private string $sklad '';
  63.     #[ORM\Column(typeTypes::TEXT)]
  64.     private ?string $comment null;
  65.     #[ORM\Column]
  66.     private bool $opt false;
  67.     #[ORM\Column]
  68.     private bool $needcall false;
  69.     #[ORM\Column]
  70.     private float $deliverycost 0;
  71.     #[ORM\Column(length1000)]
  72.     private string $paylink '';
  73.     #[ORM\Column]
  74.     private int $discount 0;
  75.     #[ORM\Column]
  76.     private ?string $session null;
  77.     #[ORM\Column]
  78.     private ?string $cookie null;
  79.     #[ORM\Column]
  80.     private float $amount 0;
  81.     #[ORM\Column]
  82.     private float $amount_without_discount 0;
  83.     #[ORM\Column]
  84.     private float $weight 0;
  85.     #[ORM\Column(length255)]
  86.     private ?string $company_nip '';
  87.     #[ORM\Column(length255)]
  88.     private ?string $company_name '';
  89.     #[ORM\Column(length255)]
  90.     private ?string $company_index '';
  91.     #[ORM\Column(length255)]
  92.     private ?string $company_city '';
  93.     #[ORM\Column(length255)]
  94.     private ?string $company_street '';
  95.     #[ORM\Column(length255)]
  96.     private ?string $company_house '';
  97.     #[ORM\Column(length255)]
  98.     private ?string $company_flat '';
  99.     #[ORM\Column(type'integer')]
  100.     private int $promocode 0;
  101.     public function getId(): ?int
  102.     {
  103.         return $this->id;
  104.     }
  105.      
  106.     public function getId2(): ?int
  107.     {
  108.         return $this->id2;
  109.     }
  110.     public function setId2(int $id2): self
  111.     {
  112.         $this->id2 $id2;
  113.         return $this;
  114.     }
  115.     public function getUser(): ?int
  116.     {
  117.         return $this->user;
  118.     }
  119.     public function setUser(int $user): self
  120.     {
  121.         $this->user $user;
  122.         return $this;
  123.     }
  124.     public function getReferal(): ?int
  125.     {
  126.         return $this->referal;
  127.     }
  128.     public function setReferal(int $referal): self
  129.     {
  130.         $this->referal $referal;
  131.         return $this;
  132.     }
  133.     public function getManager(): ?int
  134.     {
  135.         return $this->manager;
  136.     }
  137.     public function setManager(int $manager): self
  138.     {
  139.         $this->manager $manager;
  140.         return $this;
  141.     }
  142.     public function getTstamp(): ?int
  143.     {
  144.         return $this->tstamp;
  145.     }
  146.     public function setTstamp(int $tstamp): self
  147.     {
  148.         $this->tstamp $tstamp;
  149.         return $this;
  150.     }
  151.     public function getEsystem(): ?int
  152.     {
  153.         return $this->esystem;
  154.     }
  155.     public function setEsystem(int $esystem): self
  156.     {
  157.         $this->esystem $esystem;
  158.         return $this;
  159.     }
  160.     public function getDelivery(): ?int
  161.     {
  162.         return $this->delivery;
  163.     }
  164.     public function setDelivery(int $delivery): self
  165.     {
  166.         $this->delivery $delivery;
  167.         return $this;
  168.     }
  169.     public function getSubdelivery(): ?int
  170.     {
  171.         return $this->subdelivery;
  172.     }
  173.     public function setSubdelivery(int $subdelivery): self
  174.     {
  175.         $this->subdelivery $subdelivery;
  176.         return $this;
  177.     }
  178.     public function getStatus(): ?int
  179.     {
  180.         return $this->status;
  181.     }
  182.     public function setStatus(int $status): self
  183.     {
  184.         $this->status $status;
  185.         return $this;
  186.     }
  187.     public function getName(): ?string
  188.     {
  189.         return $this->name;
  190.     }
  191.     public function setName(string $name): self
  192.     {
  193.         $this->name $name;
  194.         return $this;
  195.     }
  196.     public function getAddr(): ?string
  197.     {
  198.         return $this->addr;
  199.     }
  200.     public function setAddr(string $addr): self
  201.     {
  202.         $this->addr $addr;
  203.         return $this;
  204.     }
  205.     public function getCity(): ?string
  206.     {
  207.         return $this->city;
  208.     }
  209.     public function setCity(string $city): self
  210.     {
  211.         $this->city $city;
  212.         return $this;
  213.     }
  214.     public function getPostcode(): ?string
  215.     {
  216.         return $this->postcode;
  217.     }
  218.     public function setPostcode(string $postcode): self
  219.     {
  220.         $this->postcode $postcode;
  221.         return $this;
  222.     }
  223.     public function getState(): ?string
  224.     {
  225.         return $this->state;
  226.     }
  227.     public function setState(string $state): self
  228.     {
  229.         $this->state $state;
  230.         return $this;
  231.     }
  232.     public function getStateCode(): ?string
  233.     {
  234.         return $this->state_code;
  235.     }
  236.     public function setStateCode(string $state_code): self
  237.     {
  238.         $this->state_code $state_code;
  239.         return $this;
  240.     }
  241.     public function getCountry(): ?string
  242.     {
  243.         return $this->country;
  244.     }
  245.     public function setCountry(string $country): self
  246.     {
  247.         $this->country $country;
  248.         return $this;
  249.     }
  250.     public function getPhone(): ?string
  251.     {
  252.         return $this->phone;
  253.     }
  254.     public function setPhone(string $phone): self
  255.     {
  256.         $this->phone $phone;
  257.         return $this;
  258.     }
  259.     public function getEmail(): ?string
  260.     {
  261.         return $this->email;
  262.     }
  263.     public function setEmail(string $email): self
  264.     {
  265.         $this->email $email;
  266.         return $this;
  267.     }
  268.     public function getIp(): ?string
  269.     {
  270.         return $this->ip;
  271.     }
  272.     public function setIp(string $ip): self
  273.     {
  274.         $this->ip $ip;
  275.         return $this;
  276.     }
  277.     public function getPaymentMethod(): ?string
  278.     {
  279.         return $this->payment_method;
  280.     }
  281.     public function setPaymentMethod(string $payment_method): self
  282.     {
  283.         $this->payment_method $payment_method;
  284.         return $this;
  285.     }
  286.     public function getCreated(): ?int
  287.     {
  288.         return $this->created;
  289.     }
  290.     public function setCreated(int $created): self
  291.     {
  292.         $this->created $created;
  293.         return $this;
  294.     }
  295.     public function getSklad(): ?string
  296.     {
  297.         return $this->sklad;
  298.     }
  299.     public function setSklad(string $sklad): self
  300.     {
  301.         $this->sklad $sklad;
  302.         return $this;
  303.     }
  304.     public function getComment(): ?string
  305.     {
  306.         return $this->comment;
  307.     }
  308.     public function setComment(string $comment): self
  309.     {
  310.         $this->comment $comment;
  311.         return $this;
  312.     }
  313.     public function isOpt(): ?bool
  314.     {
  315.         return $this->opt;
  316.     }
  317.     public function setOpt(bool $opt): self
  318.     {
  319.         $this->opt $opt;
  320.         return $this;
  321.     }
  322.     public function isNeedcall(): ?bool
  323.     {
  324.         return $this->needcall;
  325.     }
  326.     public function setNeedcall(bool $needcall): self
  327.     {
  328.         $this->needcall $needcall;
  329.         return $this;
  330.     }
  331.     public function getDeliverycost(): ?float
  332.     {
  333.         return $this->deliverycost;
  334.     }
  335.     public function setDeliverycost(float $deliverycost): self
  336.     {
  337.         $this->deliverycost $deliverycost;
  338.         return $this;
  339.     }
  340.     public function getPaylink(): ?string
  341.     {
  342.         return $this->paylink;
  343.     }
  344.     public function setPaylink(string $paylink): self
  345.     {
  346.         $this->paylink $paylink;
  347.         return $this;
  348.     }
  349.     public function getDiscount(): ?int
  350.     {
  351.         return $this->discount;
  352.     }
  353.     public function setDiscount(int $discount): self
  354.     {
  355.         $this->discount $discount;
  356.         return $this;
  357.     }
  358.     public function getSession(): string
  359.     {
  360.         return $this->session;
  361.     }
  362.     public function setSession(string $session): self
  363.     {
  364.         $this->session $session;
  365.         return $this;
  366.     }
  367.     public function getCookie(): string
  368.     {
  369.         return $this->cookie;
  370.     }
  371.     public function setCookie(string $cookie): self
  372.     {
  373.         $this->cookie $cookie;
  374.         return $this;
  375.     }
  376.     public function getAmount(): ?float
  377.     {
  378.         return $this->amount;
  379.     }
  380.     public function setAmount(float $amount): self
  381.     {
  382.         $this->amount $amount;
  383.         return $this;
  384.     }
  385.     public function getAmountWithoutDiscount(): ?string
  386.     {
  387.         return $this->amount_without_discount;
  388.     }
  389.     public function setAmountWithoutDiscount(string $amount_without_discount): self
  390.     {
  391.         $this->amount_without_discount $amount_without_discount;
  392.         return $this;
  393.     }
  394.     public function getWeight(): ?float
  395.     {
  396.         return $this->weight;
  397.     }
  398.     public function setWeight(float $weight): self
  399.     {
  400.         $this->weight $weight;
  401.         return $this;
  402.     }
  403.         /**
  404.      * Get the value of company_nip
  405.      */ 
  406.     public function getCompanyNip()
  407.     {
  408.         return $this->company_nip;
  409.     }
  410.     /**
  411.      * Set the value of company_nip
  412.      *
  413.      * @return  self
  414.      */ 
  415.     public function setCompanyNip($company_nip)
  416.     {
  417.         $this->company_nip $company_nip;
  418.         return $this;
  419.     }
  420.     /**
  421.      * Get the value of company_name
  422.      */ 
  423.     public function getCompanyName()
  424.     {
  425.         return $this->company_name;
  426.     }
  427.     /**
  428.      * Set the value of company_name
  429.      *
  430.      * @return  self
  431.      */ 
  432.     public function setCompanyName($company_name)
  433.     {
  434.         $this->company_name $company_name;
  435.         return $this;
  436.     }
  437.     /**
  438.      * Get the value of company_index
  439.      */ 
  440.     public function getCompanyIndex()
  441.     {
  442.         return $this->company_index;
  443.     }
  444.     /**
  445.      * Set the value of company_index
  446.      *
  447.      * @return  self
  448.      */ 
  449.     public function setCompanyIndex($company_index)
  450.     {
  451.         $this->company_index $company_index;
  452.         return $this;
  453.     }
  454.     /**
  455.      * Get the value of company_city
  456.      */ 
  457.     public function getCompanyCity()
  458.     {
  459.         return $this->company_city;
  460.     }
  461.     /**
  462.      * Set the value of company_city
  463.      *
  464.      * @return  self
  465.      */ 
  466.     public function setCompanyCity($company_city)
  467.     {
  468.         $this->company_city $company_city;
  469.         return $this;
  470.     }
  471.     /**
  472.      * Get the value of company_street
  473.      */ 
  474.     public function getCompanyStreet()
  475.     {
  476.         return $this->company_street;
  477.     }
  478.     /**
  479.      * Set the value of company_street
  480.      *
  481.      * @return  self
  482.      */ 
  483.     public function setCompanyStreet($company_street)
  484.     {
  485.         $this->company_street $company_street;
  486.         return $this;
  487.     }
  488.     /**
  489.      * Get the value of company_house
  490.      */ 
  491.     public function getCompanyHouse()
  492.     {
  493.         return $this->company_house;
  494.     }
  495.     /**
  496.      * Set the value of company_house
  497.      *
  498.      * @return  self
  499.      */ 
  500.     public function setCompanyHouse($company_house)
  501.     {
  502.         $this->company_house $company_house;
  503.         return $this;
  504.     }
  505.     /**
  506.      * Get the value of company_flat
  507.      */ 
  508.     public function getCompanyFlat()
  509.     {
  510.         return $this->company_flat;
  511.     }
  512.     /**
  513.      * Set the value of company_flat
  514.      *
  515.      * @return  self
  516.      */ 
  517.     public function setCompanyFlat($company_flat)
  518.     {
  519.         $this->company_flat $company_flat;
  520.         return $this;
  521.     }
  522.     public function getPromocode()
  523.     {
  524.         return $this->promocode;
  525.     }
  526.     public function setPromocode($promocode)
  527.     {
  528.         $this->promocode $promocode;
  529.         return $this;
  530.     }
  531. }