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