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