<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping\Index;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\OrderRepository;
#[ORM\Entity(repositoryClass: OrderRepository::class)]
#[ORM\Table(name: '`order`')]
#[Index(name: "order_user_idx", columns: ["user"])]
#[Index(name: "order_tstamp", columns: ["tstamp"])]
#[Index(name: "order_status", columns: ["status"])]
#[Index(name: "order_opt", columns: ["opt"])]
class Order implements EntityInterface
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: 'integer')]
private int $user = 0;
#[ORM\Column(type: 'integer')]
private int $referal = 0;
#[ORM\Column(type: 'integer')]
private int $manager = 0;
#[ORM\Column(type: 'integer')]
private int $tstamp = 0;
#[ORM\Column(type: 'integer')]
private int $esystem = 0;
#[ORM\Column(type: 'integer')]
private int $delivery = 0;
#[ORM\Column(type: 'integer')]
private int $subdelivery = 0;
#[ORM\Column(type: Types::SMALLINT)]
private int $status = 0;
#[ORM\Column(length: 255)]
private string $name = '';
#[ORM\Column(length: 255)]
private string $addr = '';
#[ORM\Column(length: 255)]
private string $city = '';
#[ORM\Column(length: 255)]
private string $postcode = '';
#[ORM\Column(length: 255)]
private string $state = '';
#[ORM\Column(length: 255)]
private string $state_code = '';
#[ORM\Column(length: 255)]
private string $country = '';
#[ORM\Column(length: 255)]
private string $phone = '';
#[ORM\Column(length: 255)]
private string $email = '';
#[ORM\Column(length: 255)]
private string $ip = '';
#[ORM\Column(length: 255)]
private string $payment_method = '';
#[ORM\Column(type: 'integer')]
private int $created = 0;
#[ORM\Column(length: 255)]
private string $sklad = '';
#[ORM\Column(type: Types::TEXT)]
private ?string $comment = null;
#[ORM\Column]
private bool $opt = false;
#[ORM\Column]
private bool $needcall = false;
#[ORM\Column]
private float $deliverycost = 0;
#[ORM\Column(length: 1000)]
private string $paylink = '';
#[ORM\Column]
private int $discount = 0;
#[ORM\Column]
private ?string $session = null;
#[ORM\Column]
private ?string $cookie = null;
#[ORM\Column]
private float $amount = 0;
#[ORM\Column]
private float $amount_without_discount = 0;
#[ORM\Column]
private float $weight = 0;
#[ORM\Column(length: 255)]
private ?string $company_nip = '';
#[ORM\Column(length: 255)]
private ?string $company_name = '';
#[ORM\Column(length: 255)]
private ?string $company_index = '';
#[ORM\Column(length: 255)]
private ?string $company_city = '';
#[ORM\Column(length: 255)]
private ?string $company_street = '';
#[ORM\Column(length: 255)]
private ?string $company_house = '';
#[ORM\Column(length: 255)]
private ?string $company_flat = '';
public function getId(): ?int
{
return $this->id;
}
public function getUser(): ?int
{
return $this->user;
}
public function setUser(int $user): self
{
$this->user = $user;
return $this;
}
public function getReferal(): ?int
{
return $this->referal;
}
public function setReferal(int $referal): self
{
$this->referal = $referal;
return $this;
}
public function getManager(): ?int
{
return $this->manager;
}
public function setManager(int $manager): self
{
$this->manager = $manager;
return $this;
}
public function getTstamp(): ?int
{
return $this->tstamp;
}
public function setTstamp(int $tstamp): self
{
$this->tstamp = $tstamp;
return $this;
}
public function getEsystem(): ?int
{
return $this->esystem;
}
public function setEsystem(int $esystem): self
{
$this->esystem = $esystem;
return $this;
}
public function getDelivery(): ?int
{
return $this->delivery;
}
public function setDelivery(int $delivery): self
{
$this->delivery = $delivery;
return $this;
}
public function getSubdelivery(): ?int
{
return $this->subdelivery;
}
public function setSubdelivery(int $subdelivery): self
{
$this->subdelivery = $subdelivery;
return $this;
}
public function getStatus(): ?int
{
return $this->status;
}
public function setStatus(int $status): self
{
$this->status = $status;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getAddr(): ?string
{
return $this->addr;
}
public function setAddr(string $addr): self
{
$this->addr = $addr;
return $this;
}
public function getCity(): ?string
{
return $this->city;
}
public function setCity(string $city): self
{
$this->city = $city;
return $this;
}
public function getPostcode(): ?string
{
return $this->postcode;
}
public function setPostcode(string $postcode): self
{
$this->postcode = $postcode;
return $this;
}
public function getState(): ?string
{
return $this->state;
}
public function setState(string $state): self
{
$this->state = $state;
return $this;
}
public function getStateCode(): ?string
{
return $this->state_code;
}
public function setStateCode(string $state_code): self
{
$this->state_code = $state_code;
return $this;
}
public function getCountry(): ?string
{
return $this->country;
}
public function setCountry(string $country): self
{
$this->country = $country;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getIp(): ?string
{
return $this->ip;
}
public function setIp(string $ip): self
{
$this->ip = $ip;
return $this;
}
public function getPaymentMethod(): ?string
{
return $this->payment_method;
}
public function setPaymentMethod(string $payment_method): self
{
$this->payment_method = $payment_method;
return $this;
}
public function getCreated(): ?int
{
return $this->created;
}
public function setCreated(int $created): self
{
$this->created = $created;
return $this;
}
public function getSklad(): ?string
{
return $this->sklad;
}
public function setSklad(string $sklad): self
{
$this->sklad = $sklad;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(string $comment): self
{
$this->comment = $comment;
return $this;
}
public function isOpt(): ?bool
{
return $this->opt;
}
public function setOpt(bool $opt): self
{
$this->opt = $opt;
return $this;
}
public function isNeedcall(): ?bool
{
return $this->needcall;
}
public function setNeedcall(bool $needcall): self
{
$this->needcall = $needcall;
return $this;
}
public function getDeliverycost(): ?float
{
return $this->deliverycost;
}
public function setDeliverycost(float $deliverycost): self
{
$this->deliverycost = $deliverycost;
return $this;
}
public function getPaylink(): ?string
{
return $this->paylink;
}
public function setPaylink(string $paylink): self
{
$this->paylink = $paylink;
return $this;
}
public function getDiscount(): ?int
{
return $this->discount;
}
public function setDiscount(int $discount): self
{
$this->discount = $discount;
return $this;
}
public function getSession(): string
{
return $this->session;
}
public function setSession(string $session): self
{
$this->session = $session;
return $this;
}
public function getCookie(): string
{
return $this->cookie;
}
public function setCookie(string $cookie): self
{
$this->cookie = $cookie;
return $this;
}
public function getAmount(): ?float
{
return $this->amount;
}
public function setAmount(float $amount): self
{
$this->amount = $amount;
return $this;
}
public function getAmountWithoutDiscount(): ?string
{
return $this->amount_without_discount;
}
public function setAmountWithoutDiscount(string $amount_without_discount): self
{
$this->amount_without_discount = $amount_without_discount;
return $this;
}
public function getWeight(): ?float
{
return $this->weight;
}
public function setWeight(float $weight): self
{
$this->weight = $weight;
return $this;
}
/**
* Get the value of company_nip
*/
public function getCompanyNip()
{
return $this->company_nip;
}
/**
* Set the value of company_nip
*
* @return self
*/
public function setCompanyNip($company_nip)
{
$this->company_nip = $company_nip;
return $this;
}
/**
* Get the value of company_name
*/
public function getCompanyName()
{
return $this->company_name;
}
/**
* Set the value of company_name
*
* @return self
*/
public function setCompanyName($company_name)
{
$this->company_name = $company_name;
return $this;
}
/**
* Get the value of company_index
*/
public function getCompanyIndex()
{
return $this->company_index;
}
/**
* Set the value of company_index
*
* @return self
*/
public function setCompanyIndex($company_index)
{
$this->company_index = $company_index;
return $this;
}
/**
* Get the value of company_city
*/
public function getCompanyCity()
{
return $this->company_city;
}
/**
* Set the value of company_city
*
* @return self
*/
public function setCompanyCity($company_city)
{
$this->company_city = $company_city;
return $this;
}
/**
* Get the value of company_street
*/
public function getCompanyStreet()
{
return $this->company_street;
}
/**
* Set the value of company_street
*
* @return self
*/
public function setCompanyStreet($company_street)
{
$this->company_street = $company_street;
return $this;
}
/**
* Get the value of company_house
*/
public function getCompanyHouse()
{
return $this->company_house;
}
/**
* Set the value of company_house
*
* @return self
*/
public function setCompanyHouse($company_house)
{
$this->company_house = $company_house;
return $this;
}
/**
* Get the value of company_flat
*/
public function getCompanyFlat()
{
return $this->company_flat;
}
/**
* Set the value of company_flat
*
* @return self
*/
public function setCompanyFlat($company_flat)
{
$this->company_flat = $company_flat;
return $this;
}
}