<?php
namespace Claromentis\Core\ORM\Entity;

$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"] = (@$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"] ?: array()) + array();
use Analogue\ORM\Entity;
use Claromentis\Core\ORM\Behaviors\Casts;















class MetadataElement extends Entity
{
    use Casts;
    protected $casts = ['id' => 'int', 'aggregation' => 'int', 'object_id' => 'int', 'type' => 'int', 'intval' => 'int', 'txtval' => 'string', 'clobval' => 'string', 'to_index' => 'bool'];
    protected $nullable = ['name', 'txtval', 'clobval'];
    protected $hidden = ['to_index'];
    
    
    
    
    
    
    public function getWrapperValues()
    {
        return [$this->intval, $this->txtval, $this->clobval];
    }
    
    
    
    
    
    
    public function setWrapperValues(array $values)
    {
        $this->intval = $values[0] ?? 0;
        $this->txtval = $values[1] ?? null;
        $this->clobval = $values[2] ?? null;
    }
}