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

$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"] = (@$GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"] ?: 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;
    }
}