<?php
/**
* Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
* See https://www.x-cart.com/license-agreement.html for license details.
*/
namespace XLite\Model;
use Doctrine\ORM\Mapping as ORM;
/**
* DB-based temporary variables
*
* @ORM\Entity
* @ORM\Table (name="tmp_vars",
* uniqueConstraints={
* @ORM\UniqueConstraint (name="name", columns={"name"})
* }
* )
*/
class TmpVar extends \XLite\Model\AEntity
{
/**
* Option unique name
*
* @var string
*
* @ORM\Id
* @ORM\GeneratedValue (strategy="AUTO")
* @ORM\Column (type="integer")
*/
protected $id;
/**
* Name
*
* @var string
*
* @ORM\Column (type="string", length=128)
*/
protected $name;
/**
* Value
*
* @var string
*
* @ORM\Column (type="text")
*/
protected $value = '';
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set name
*
* @param string $name
* @return TmpVar
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set value
*
* @param string $value
* @return TmpVar
*/
public function setValue($value)
{
$this->value = $value;
return $this;
}
/**
* Get value
*
* @return string
*/
public function getValue()
{
return $this->value;
}
}