<?php
namespace Claromentis\Quiz\Model;

$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"] ?: array()) + array("_aa28ebaa9e17fc6a6" . "7b37600d92d6054" => base64_decode("Y3JlYXRlZF9" . "kYXRl"), "question_i" . "d" => base64_decode("cXVlc3Rpb25faWQ" . "="), "i" . "d" => base64_decode("aW" . "Q="), "poll" . "_id" => base64_decode("cG9" . "sbF" . "9pZ" . "A=="), "_8652ba33e" . "6ffeba0245" . "9fa9cbb320" . "851" => base64_decode("cmVwb3N" . "pdG9yeQ" . "=="), "_068ab9b93" . "40314c5b07" . "e3e5cc31d9" . "25b" => base64_decode("c29yd" . "F9vcm" . "Rlcg=" . "="), "_4ae735dfab93e273a43318f8" . "14dc9982" => base64_decode("cXVpel9wb2xsX3F1ZXN0aW9uX2p1bmN0aW" . "9u"));
use ObjectsStorage;
use Claromentis\Core\Repository\RepositoryItemAbstract;










class PollQuestion extends RepositoryItemAbstract implements \JsonSerializable
{
    
    
    
    
    
    public function InitDbMapping(ObjectsStorage $_ee97244432473014aa9408ee5cf1f596)
    {
        $_ee97244432473014aa9408ee5cf1f596->MapDbTable($this, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_4ae735dfab93e273a43318f814dc99" . "82"])->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["i" . "d"], ObjectsStorage::T_AUTOINCREMENT)->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["po" . "ll" . "_i" . "d"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["ques" . "tion" . "_id"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_068ab9b9340314c5b07e3e5cc31d" . "925b"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_aa28ebaa9e17fc6a67b37600d92" . "d6054"], ObjectsStorage::T_INT, 14)->SetCacheMode($this, \ClaCache::MEMORY);
    }
    public function jsonSerialize()
    {
        return [$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["po" . "ll" . "_i" . "d"] => $this->poll_id, $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["questio" . "n_id"] => $this->question_id, $GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_068ab9b9340314c5b07e3e" . "5cc31d925b"] => $this->sort_order];
    }
    public function __set($_c241f11ec2591cc626823468234ffaf4, $_71f6a5b5840d77d6f5700b8129d32c14)
    {
        
        
        if ($_c241f11ec2591cc626823468234ffaf4 !== $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_8652ba33e6" . "ffeba02459f" . "a9cbb320851"]) {
            $this->SetProperty($_c241f11ec2591cc626823468234ffaf4, $_71f6a5b5840d77d6f5700b8129d32c14);
        }
    }
    public function SetPollId(int $poll_id) : void
    {
        $this->poll_id = $poll_id;
    }
    public function SetQuestionId(int $question_id) : void
    {
        $this->question_id = $question_id;
    }
    
    
    
    
    public function SetSortOrder($_068ab9b9340314c5b07e3e5cc31d925b)
    {
        $this->sort_order = $_068ab9b9340314c5b07e3e5cc31d925b;
    }
    
    
    
    
    public function SetCreatedDate($_aa28ebaa9e17fc6a67b37600d92d6054)
    {
        if ($_aa28ebaa9e17fc6a67b37600d92d6054 instanceof \Date) {
            $_aa28ebaa9e17fc6a67b37600d92d6054 = $_aa28ebaa9e17fc6a67b37600d92d6054->getDate();
        }
        $this->created_date = $_aa28ebaa9e17fc6a67b37600d92d6054;
    }
}