classes/XLite/Model/TmpVar.php line 22

Open in your IDE?
  1. <?php
  2. /**
  3.  * Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
  4.  * See https://www.x-cart.com/license-agreement.html for license details.
  5.  */
  6. namespace XLite\Model;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * DB-based temporary variables
  10.  *
  11.  * @ORM\Entity
  12.  * @ORM\Table  (name="tmp_vars",
  13.  *      uniqueConstraints={
  14.  *          @ORM\UniqueConstraint (name="name", columns={"name"})
  15.  *      }
  16.  * )
  17.  */
  18. class TmpVar extends \XLite\Model\AEntity
  19. {
  20.     /**
  21.      * Option unique name
  22.      *
  23.      * @var string
  24.      *
  25.      * @ORM\Id
  26.      * @ORM\GeneratedValue (strategy="AUTO")
  27.      * @ORM\Column         (type="integer")
  28.      */
  29.     protected $id;
  30.     /**
  31.      * Name
  32.      *
  33.      * @var string
  34.      *
  35.      * @ORM\Column (type="string", length=128)
  36.      */
  37.     protected $name;
  38.     /**
  39.      * Value
  40.      *
  41.      * @var string
  42.      *
  43.      * @ORM\Column (type="text")
  44.      */
  45.     protected $value '';
  46.     /**
  47.      * Get id
  48.      *
  49.      * @return integer
  50.      */
  51.     public function getId()
  52.     {
  53.         return $this->id;
  54.     }
  55.     /**
  56.      * Set name
  57.      *
  58.      * @param string $name
  59.      * @return TmpVar
  60.      */
  61.     public function setName($name)
  62.     {
  63.         $this->name $name;
  64.         return $this;
  65.     }
  66.     /**
  67.      * Get name
  68.      *
  69.      * @return string
  70.      */
  71.     public function getName()
  72.     {
  73.         return $this->name;
  74.     }
  75.     /**
  76.      * Set value
  77.      *
  78.      * @param string $value
  79.      * @return TmpVar
  80.      */
  81.     public function setValue($value)
  82.     {
  83.         $this->value $value;
  84.         return $this;
  85.     }
  86.     /**
  87.      * Get value
  88.      *
  89.      * @return string
  90.      */
  91.     public function getValue()
  92.     {
  93.         return $this->value;
  94.     }
  95. }