. */ namespace SP\DataModel; defined('APP_ROOT') || die(); /** * Class ClientData * * @package SP\DataModel */ class ClientData extends DataModelBase implements DataModelInterface { /** * @var int */ public $id = 0; /** * @var string */ public $name = ''; /** * @var string */ public $description = ''; /** * @var string */ public $hash = ''; /** * @var int */ public $isGlobal = 0; /** * CustomerData constructor. * * @param int $id * @param string $name * @param string $description */ public function __construct($id = null, $name = null, $description = null) { $this->id = $id; $this->name = $name; $this->description = $description; } /** * @return int */ public function getId() { return (int)$this->id; } /** * @param int $id */ public function setId($id) { $this->id = (int)$id; } /** * @return string */ public function getName() { return $this->name; } /** * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string $description */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getHash() { return $this->hash; } /** * @return int */ public function getIsGlobal() { return (int)$this->isGlobal; } /** * @param int $isGlobal */ public function setIsGlobal($isGlobal) { $this->isGlobal = (int)$isGlobal; } }