<?php
namespace Claromentis\Quiz\Model;

$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"] = (@$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"] ?: array()) + array("opti" . "on_i" . "d" => base64_decode("b3B0aW9uX2" . "lk"), "attempt_" . "id" => base64_decode("YXR0ZW1wdF9pZA" . "=="), "i" . "d" => base64_decode("aWQ" . "="), "question" . "_id" => base64_decode("cXVlc3Rpb25faWQ" . "="), "_8652ba33e6ffeba02459fa" . "9cbb320851" => base64_decode("cmVw" . "b3Np" . "dG9y" . "eQ=="), "_aa28ebaa9e17fc6a67" . "b37600d92d6054" => base64_decode("Y3JlYXRlZF" . "9kYXRl"), "_16ee4776017fd72b2" . "728be4c7e83e1be" => base64_decode("cXVpel9hbnN3ZXJfY" . "2hvaWNl"), "us" . "er" . "_i" . "d" => base64_decode("dXNlcl9p" . "ZA=="));
use ObjectsStorage;
use Claromentis\Core\Repository\RepositoryItemAbstract;










class AnswerChoice extends RepositoryItemAbstract implements \JsonSerializable
{
    
    
    
    
    
    public function InitDbMapping(ObjectsStorage $_ee97244432473014aa9408ee5cf1f596)
    {
        $_ee97244432473014aa9408ee5cf1f596->MapDbTable($this, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_16ee4776017fd72b2728b" . "e4c7e83e1be"])->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["i" . "d"], ObjectsStorage::T_AUTOINCREMENT)->MapDbColumn($this, $GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["user" . "_id"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["att" . "emp" . "t_i" . "d"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["question_" . "id"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["optio" . "n_id"], ObjectsStorage::T_INT, 11)->MapDbColumn($this, $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_aa28ebaa9e17fc6a67b" . "37600d92d6054"], ObjectsStorage::T_INT, 14)->SetCacheMode($this, \ClaCache::MEMORY);
    }
    
    
    
    
    
    
    
    
    public function jsonSerialize()
    {
        $_aa28ebaa9e17fc6a67b37600d92d6054 = new \Date($this->created_date);
        
        
        return [$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["i" . "d"] => (int) $this->id, $GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["user_i" . "d"] => (int) $this->user_id, $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["att" . "emp" . "t_i" . "d"] => (int) $this->attempt_id, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["question_" . "id"] => (int) $this->question_id, $GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["op" . "ti" . "on" . "_i" . "d"] => (int) $this->option_id, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_aa28ebaa9e17fc6a" . "67b37600d92d6054"] => $_aa28ebaa9e17fc6a67b37600d92d6054->getDate(DATE_FORMAT_CLA_LONG_DATE)];
    }
    
    
    
    
    
    
    public function __set($_c241f11ec2591cc626823468234ffaf4, $_71f6a5b5840d77d6f5700b8129d32c14)
    {
        
        
        if ($_c241f11ec2591cc626823468234ffaf4 !== $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_8652ba33e6ffeba024" . "59fa9cbb320851"]) {
            $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;
    }
}