src/Entity/PlanCounter.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use AdminBundle\Entity\Plan;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Ramsey\Uuid\UuidInterface;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. use Symfony\Component\Serializer\Annotation\MaxDepth;
  8. use Symfony\Component\Serializer\Annotation\Ignore;
  9. /**
  10.  * PlanCounter
  11.  *
  12.  * @ORM\Table(name="plan_counter")
  13.  * @ORM\Entity(repositoryClass="App\Repository\PlanCounterRepository")
  14.  */
  15. class PlanCounter
  16. {
  17.     /**
  18.      * @var \Ramsey\Uuid\UuidInterface
  19.      *
  20.      * @ORM\Id
  21.      *  @ORM\Column(type="uuid", unique=true)
  22.      * @ORM\GeneratedValue(strategy="CUSTOM")
  23.      * @ORM\CustomIdGenerator(class="Ramsey\Uuid\Doctrine\UuidGenerator")
  24.      */
  25.     private $id;
  26.     /**
  27.      * @var float
  28.      *
  29.      * @ORM\Column(name="price", type="decimal", precision=32, scale=2)
  30.      */
  31.     private $price;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="name", type="string", length=50)
  36.      */
  37.     private $name;
  38.     /**
  39.      * @var int
  40.      *
  41.      * @ORM\Column(name="invoices", type="integer")
  42.      */
  43.     private $invoices;
  44.     /**
  45.      * @var float
  46.      *
  47.      * @ORM\Column(name="amount", type="decimal")
  48.      */
  49.     private $amount;
  50.     /**
  51.      * @var int
  52.      *
  53.      * @ORM\Column(name="wareHouses", type="integer")
  54.      */
  55.     private $wareHouses;
  56.     /**
  57.      *
  58.      * @ORM\Column(name="supplies", type="boolean")
  59.      */
  60.     private $supllies;
  61.     /**
  62.      * @var int
  63.      *
  64.      * @ORM\Column(name="users", type="integer")
  65.      */
  66.     private $users;
  67.     /**
  68.      * @var bool
  69.      *
  70.      * @ORM\Column(name="accounting", type="boolean")
  71.      */
  72.     private $accounting;
  73.     /**
  74.      * @var bool
  75.      *
  76.      * @ORM\Column(name="auditing", type="boolean")
  77.      */
  78.     private $auditing;
  79.     /**
  80.      * @var bool
  81.      *
  82.      * @ORM\Column(name="pos", type="boolean")
  83.      */
  84.     private $pos;
  85.     /**
  86.      * @var bool
  87.      *
  88.      * @ORM\Column(name="reports", type="boolean")
  89.      */
  90.     private $reports;
  91.     /**
  92.      * @var int
  93.      *
  94.      * @ORM\Column(name="dayly_back_ups", type="integer")
  95.      */
  96.     private $daylyBackUps;
  97.     /**
  98.      * @ORM\ManyToOne(targetEntity="App\Entity\Company", inversedBy="plans")
  99.      * @MaxDepth(1)
  100.      * @Ignore()
  101.      */
  102.     private $company;
  103.     /**
  104.      * @ORM\Column(name="date", type="datetime")
  105.      */
  106.     private $date;
  107.     /**
  108.      * @ORM\Column(name="due_date", type="datetime")
  109.      */
  110.     private $dueDate;
  111.     /**
  112.      * @var string
  113.      *
  114.      * @ORM\Column(name="license", type="text", length=1000)
  115.      */
  116.     private $license;
  117.     public function __clone()
  118.     {
  119.         return $this;
  120.     }
  121.     public function toArray()
  122.     {
  123.         return (array)$this;
  124.     }
  125.     /**
  126.      * Get id
  127.      *
  128.      */
  129.     public function getId()
  130.     {
  131.         return $this->id;
  132.     }
  133.     /**
  134.      * Set name
  135.      *
  136.      * @param string $name
  137.      *
  138.      * @return \App\Entity\Plan
  139.      */
  140.     public function setName($name)
  141.     {
  142.         $this->name $name;
  143.         return $this;
  144.     }
  145.     /**
  146.      * Get name
  147.      *
  148.      * @return string
  149.      */
  150.     public function getName()
  151.     {
  152.         return $this->name;
  153.     }
  154.     /**
  155.      * Set invoices
  156.      *
  157.      * @param integer $invoices
  158.      *
  159.      * @return Plan
  160.      */
  161.     public function setInvoices($invoices)
  162.     {
  163.         $this->invoices $invoices;
  164.         return $this;
  165.     }
  166.     /**
  167.      * Get invoices
  168.      *
  169.      * @return int
  170.      */
  171.     public function getInvoices()
  172.     {
  173.         return $this->invoices;
  174.     }
  175.     /**
  176.      * Set wareHouses
  177.      *
  178.      * @param integer $wareHouses
  179.      *
  180.      * @return Plan
  181.      */
  182.     public function setWareHouses($wareHouses)
  183.     {
  184.         $this->wareHouses $wareHouses;
  185.         return $this;
  186.     }
  187.     /**
  188.      * Get wareHouses
  189.      *
  190.      * @return int
  191.      */
  192.     public function getWareHouses()
  193.     {
  194.         return $this->wareHouses;
  195.     }
  196.     /**
  197.      * Set users
  198.      *
  199.      * @param integer $users
  200.      *
  201.      * @return Plan
  202.      */
  203.     public function setUsers($users)
  204.     {
  205.         $this->users $users;
  206.         return $this;
  207.     }
  208.     /**
  209.      * Get users
  210.      *
  211.      * @return int
  212.      */
  213.     public function getUsers()
  214.     {
  215.         return $this->users;
  216.     }
  217.     /**
  218.      * Set accounting
  219.      *
  220.      * @param integer $accounting
  221.      *
  222.      * @return Plan
  223.      */
  224.     public function setAccounting($accounting)
  225.     {
  226.         $this->accounting $accounting;
  227.         return $this;
  228.     }
  229.     /**
  230.      * Get accounting
  231.      *
  232.      * @return int
  233.      */
  234.     public function isAccounting()
  235.     {
  236.         return $this->accounting;
  237.     }
  238.     /**
  239.      * Set auditing
  240.      *
  241.      * @param integer $auditing
  242.      *
  243.      * @return Plan
  244.      */
  245.     public function setAuditing($auditing)
  246.     {
  247.         $this->auditing $auditing;
  248.         return $this;
  249.     }
  250.     /**
  251.      * Get auditing
  252.      *
  253.      */
  254.     public function isAuditing()
  255.     {
  256.         return $this->auditing;
  257.     }
  258.     /**
  259.      * Set pos
  260.      *
  261.      * @param integer $pos
  262.      *
  263.      * @return Plan
  264.      */
  265.     public function setPos($pos)
  266.     {
  267.         $this->pos $pos;
  268.         return $this;
  269.     }
  270.     /**
  271.      * Get pos
  272.      *
  273.      * @return int
  274.      */
  275.     public function getPos()
  276.     {
  277.         return $this->pos;
  278.     }
  279.     /**
  280.      * @return float
  281.      */
  282.     public function getPrice()
  283.     {
  284.         return $this->price;
  285.     }
  286.     /**
  287.      * @param float $price
  288.      */
  289.     public function setPrice($price)
  290.     {
  291.         $this->price $price;
  292.         return $this;
  293.     }
  294.     /**
  295.      * @return float
  296.      */
  297.     public function getAmount()
  298.     {
  299.         return $this->amount;
  300.     }
  301.     /**
  302.      * @param float $amount
  303.      */
  304.     public function setAmount($amount)
  305.     {
  306.         $this->amount $amount;
  307.         return $this;
  308.     }
  309.     /**
  310.      * @return bool
  311.      */
  312.     public function isSupllies()
  313.     {
  314.         return $this->supllies;
  315.     }
  316.     /**
  317.      * @param bool $supllies
  318.      */
  319.     public function setSupllies($supllies)
  320.     {
  321.         $this->supllies $supllies;
  322.         return $this;
  323.     }
  324.     /**
  325.      * @return bool
  326.      */
  327.     public function isReports()
  328.     {
  329.         return $this->reports;
  330.     }
  331.     /**
  332.      * @param bool $reports
  333.      */
  334.     public function setReports($reports)
  335.     {
  336.         $this->reports $reports;
  337.         return $this;
  338.     }
  339.     /**
  340.      * @return int
  341.      */
  342.     public function getDaylyBackUps()
  343.     {
  344.         return $this->daylyBackUps;
  345.     }
  346.     /**
  347.      * @param int $daylyBackUps
  348.      */
  349.     public function setDaylyBackUps($daylyBackUps)
  350.     {
  351.         $this->daylyBackUps $daylyBackUps;
  352.     }
  353.     /**
  354.      * @return mixed
  355.      */
  356.     public function getCompany()
  357.     {
  358.         return $this->company;
  359.     }
  360.     /**
  361.      * @param mixed $company
  362.      */
  363.     public function setCompany($company)
  364.     {
  365.         $this->company $company;
  366.     }
  367.     /**
  368.      * @return mixed
  369.      */
  370.     public function getDate()
  371.     {
  372.         return $this->date;
  373.     }
  374.     /**
  375.      * @param mixed $date
  376.      */
  377.     public function setDate($date)
  378.     {
  379.         $this->date $date;
  380.     }
  381.     /**
  382.      * @return \DateTime
  383.      */
  384.     public function getDueDate()
  385.     {
  386.         return $this->dueDate;
  387.     }
  388.     /**
  389.      * @param \DateTime $dueDate
  390.      */
  391.     public function setDueDate($dueDate)
  392.     {
  393.         $this->dueDate $dueDate;
  394.     }
  395.     /**
  396.      * @return string
  397.      */
  398.     public function getLicense()
  399.     {
  400.         return $this->license;
  401.     }
  402.     /**
  403.      * @param string $license
  404.      */
  405.     public function setLicense($license)
  406.     {
  407.         $this->license $license;
  408.     }
  409. }