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