<?php
namespace Claromentis\Quiz\Model;

$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"] = (@$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] ?: array()) + array("_8652ba33e6ffeba02459fa9c" . "bb320851" => base64_decode("cmVwb3Npd" . "G9yeQ=="), "i" . "d" => base64_decode("aWQ" . "="), "_aa28ebaa9e17fc6a67b376" . "00d92d6054" => base64_decode("Y3JlYXRlZF9kY" . "XRl"), "user_" . "id" => base64_decode("dXNl" . "cl9p" . "ZA=="), "questi" . "on_id" => base64_decode("cXVlc" . "3Rpb2" . "5faWQ" . "="), "attempt_" . "id" => base64_decode("YXR0ZW" . "1wdF9p" . "ZA=="), "option_" . "id" => base64_decode("b3B0" . "aW9u" . "X2lk"), "_16ee4776017fd72b" . "2728be4c7e83e1be" => base64_decode("cXVpel" . "9hbnN3" . "ZXJfY2" . "hvaWNl"));
use ObjectsStorage;
use Claromentis\Core\Repository\RepositoryItemAbstract;










class AnswerChoice extends RepositoryItemAbstract implements \JsonSerializable
{
    
    
    
    
    
    public function InitDbMapping(ObjectsStorage $_ee97244432473014aa9408ee5cf1f596)
    {
        $_ee97244432473014aa9408ee5cf1f596->MapDbTable($this, $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_16ee4776017fd72b2728be4c" . "7e83e1be"])->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["i" . "d"], ObjectsStorage::T_AUTOINCREMENT)->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["user_" . "id"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["attempt" . "_id"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["questio" . "n_id"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["opt" . "ion" . "_id"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_aa28ebaa9e" . "17fc6a67b37" . "600d92d6054"], ObjectsStorage::T_INT, 14)->SetCacheMode($this, \ClaCache::MEMORY);
    }
    
    
    
    
    
    
    
    
    public function jsonSerialize()
    {
        $_aa28ebaa9e17fc6a67b37600d92d6054 = new \Date($this->created_date);
        
        
        return [$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["i" . "d"] => (int) $this->id, $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["user" . "_id"] => (int) $this->user_id, $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["att" . "emp" . "t_i" . "d"] => (int) $this->attempt_id, $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["questi" . "on_id"] => (int) $this->question_id, $GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["opt" . "ion" . "_id"] => (int) $this->option_id, $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_aa28ebaa9e17fc6a6" . "7b37600d92d6054"] => $_aa28ebaa9e17fc6a67b37600d92d6054->getDate(DATE_FORMAT_CLA_LONG_DATE)];
    }
    
    
    
    
    
    
    public function __set($_c241f11ec2591cc626823468234ffaf4, $_71f6a5b5840d77d6f5700b8129d32c14)
    {
        
        
        if ($_c241f11ec2591cc626823468234ffaf4 !== $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_8652ba33e6ffeba02459fa" . "9cbb320851"]) {
            $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;
    }
}