<?php
namespace Claromentis\Quiz\Model;

$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] ?: array()) + array("i" . "d" => base64_decode("aW" . "Q="), "_aa28ebaa9e17fc6a67b376" . "00d92d6054" => base64_decode("Y3JlYXRl" . "ZF9kYXRl"), "ques" . "tion" . "_id" => base64_decode("cXVl" . "c3Rp" . "b25f" . "aWQ="), "_8652ba33e6ffeba02459fa9" . "cbb320851" => base64_decode("cmVw" . "b3Np" . "dG9y" . "eQ=="), "_16ee4776017fd72b2728be" . "4c7e83e1be" => base64_decode("cXVpel" . "9hbnN3" . "ZXJfY2" . "hvaWNl"), "attem" . "pt_id" => base64_decode("YXR0ZW1wdF" . "9pZA=="), "use" . "r_i" . "d" => base64_decode("dXNlcl9pZA" . "=="), "option_i" . "d" => base64_decode("b3B0aW9uX" . "2lk"));
use ObjectsStorage;
use Claromentis\Core\Repository\RepositoryItemAbstract;










class AnswerChoice extends RepositoryItemAbstract implements \JsonSerializable
{
    
    
    
    
    
    public function InitDbMapping(ObjectsStorage $_ee97244432473014aa9408ee5cf1f596)
    {
        $_ee97244432473014aa9408ee5cf1f596->MapDbTable($this, $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_16ee4776017fd72b2728be4c" . "7e83e1be"])->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["i" . "d"], ObjectsStorage::T_AUTOINCREMENT)->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["user_i" . "d"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["attem" . "pt_id"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["que" . "sti" . "on_" . "id"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["option_" . "id"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_aa28ebaa9e1" . "7fc6a67b3760" . "0d92d6054"], ObjectsStorage::T_INT, 14)->SetCacheMode($this, \ClaCache::MEMORY);
    }
    
    
    
    
    
    
    
    
    public function jsonSerialize()
    {
        $_aa28ebaa9e17fc6a67b37600d92d6054 = new \Date($this->created_date);
        
        
        return [$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["i" . "d"] => (int) $this->id, $GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["user_" . "id"] => (int) $this->user_id, $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["att" . "emp" . "t_i" . "d"] => (int) $this->attempt_id, $GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["quest" . "ion_i" . "d"] => (int) $this->question_id, $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["opti" . "on_i" . "d"] => (int) $this->option_id, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_aa28ebaa9e17fc6a67b" . "37600d92d6054"] => $_aa28ebaa9e17fc6a67b37600d92d6054->getDate(DATE_FORMAT_CLA_LONG_DATE)];
    }
    
    
    
    
    
    
    public function __set($_c241f11ec2591cc626823468234ffaf4, $_71f6a5b5840d77d6f5700b8129d32c14)
    {
        
        
        if ($_c241f11ec2591cc626823468234ffaf4 !== $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_8652ba33e6ffe" . "ba02459fa9cbb3" . "20851"]) {
            $this->SetProperty($_c241f11ec2591cc626823468234ffaf4, $_71f6a5b5840d77d6f5700b8129d32c14);
        }
    }
    
    
    
    
    public function SetQuestionId($question_id)
    {
        $this->question_id = $question_id;
    }
    
    
    
    
    public function SetUserId($user_id)
    {
        $this->user_id = $user_id;
    }
    
    
    
    
    public function SetAttemptId($attempt_id)
    {
        $this->attempt_id = $attempt_id;
    }
    
    
    
    
    public function SetOptionId($option_id)
    {
        $this->option_id = $option_id;
    }
    
    
    
    
    public function SetCreatedDate($_aa28ebaa9e17fc6a67b37600d92d6054)
    {
        if ($_aa28ebaa9e17fc6a67b37600d92d6054 instanceof \Date) {
            $_aa28ebaa9e17fc6a67b37600d92d6054 = $_aa28ebaa9e17fc6a67b37600d92d6054->getDate();
        }
        $this->created_date = $_aa28ebaa9e17fc6a67b37600d92d6054;
    }
}