<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* CustomersGroups
*
* @ORM\Table(name="customers_groups")
* @ORM\Entity
*/
class CustomerGroup
{
/**
* @var int
*
* @ORM\Column(name="customers_group_id", type="smallint", nullable=false, options={"unsigned"=true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="customers_group_name", type="string", length=32, nullable=false)
*/
private $name = '';
/**
* @var string
*
* @ORM\Column(name="customers_group_show_tax", type="string", length=0, nullable=false, options={"default"="1"})
*/
private $showTax = '1';
/**
* @var string
*
* @ORM\Column(name="customers_group_tax_exempt", type="string", length=0, nullable=false)
*/
private $taxExempt = '0';
/**
* @var string
*
* @ORM\Column(name="group_payment_allowed", type="string", length=255, nullable=false)
*/
private $paymentAllowed = '';
/**
* @var string
*
* @ORM\Column(name="group_shipment_allowed", type="string", length=255, nullable=false)
*/
private $shipmentAllowed = '';
public function getId() {
return $this->id;
}
public function getName() {
return $this->name;
}
public function getShowTax() {
return $this->showTax;
}
public function getTaxExempt() {
return $this->taxExempt;
}
public function getPaymentAllowed() {
return $this->paymentAllowed;
}
public function getShipmentAllowed() {
return $this->shipmentAllowed;
}
public function setId($id) {
$this->id = $id;
}
public function setName($name) {
$this->name = $name;
}
public function setShowTax($showTax) {
$this->showTax = $showTax;
}
public function setTaxExempt($taxExempt) {
$this->taxExempt = $taxExempt;
}
public function setPaymentAllowed($paymentAllowed) {
$this->paymentAllowed = $paymentAllowed;
}
public function setShipmentAllowed($shipmentAllowed) {
$this->shipmentAllowed = $shipmentAllowed;
}
public function toArray() {
$tmp = [];
$tmp['id'] = $this->getId();
$tmp['name'] = $this->getId();
$tmp['showTax'] = $this->getId();
$tmp['taxExempt'] = $this->getId();
$tmp['paymentAllowed'] = $this->getId();
$tmp['shipmentAllowed'] = $this->getId();
return $tmp;
}
}