mirror of
https://github.com/Karaka-Management/oms-Surveys.git
synced 2026-01-11 16:08:41 +00:00
123 lines
1.7 KiB
PHP
123 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.4
|
|
*
|
|
* @package Modules\Surveys
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Surveys\Models;
|
|
|
|
/**
|
|
* Question class.
|
|
*
|
|
* @package Modules\Surveys
|
|
* @license OMS License 1.0
|
|
* @link https://orange-management.org
|
|
* @since 1.0.0
|
|
*/
|
|
class Question
|
|
{
|
|
|
|
/**
|
|
* ID.
|
|
*
|
|
* @var int
|
|
* @since 1.0.0
|
|
*/
|
|
private $id = 0;
|
|
|
|
/**
|
|
* Name.
|
|
*
|
|
* @var string
|
|
* @since 1.0.0
|
|
*/
|
|
private $name = '';
|
|
|
|
/**
|
|
* Description.
|
|
*
|
|
* @var string
|
|
* @since 1.0.0
|
|
*/
|
|
private $description = '';
|
|
|
|
private static $instances = [];
|
|
|
|
public function getInstance($id)
|
|
{
|
|
if (!isset(self::$instances[$id])) {
|
|
self::$instances[$id] = new self($id);
|
|
}
|
|
|
|
return self::$instances[$id];
|
|
}
|
|
|
|
|
|
public function init($id) : void
|
|
{
|
|
}
|
|
|
|
|
|
public function __clone()
|
|
{
|
|
}
|
|
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setName($name) : void
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
public function setDescription($desc) : void
|
|
{
|
|
$this->description = $desc;
|
|
}
|
|
|
|
|
|
public function delete() : void
|
|
{
|
|
}
|
|
|
|
|
|
public function create() : void
|
|
{
|
|
}
|
|
|
|
|
|
public function update() : void
|
|
{
|
|
}
|
|
|
|
|
|
public function serialize() : void
|
|
{
|
|
}
|
|
|
|
|
|
public function unserialize($data) : void
|
|
{
|
|
}
|
|
}
|