<?php
namespace Claromentis\Core\DataTable;

$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"] ?: array()) + array("_4ccaca2" . "e2404a3e" . "aee38951" . "1430b7a6" . "2" => base64_decode("dGVtcGxhd" . "GVfa2V5"), "na" . "me" => base64_decode("bmF" . "tZQ" . "=="), "_ac6e49283" . "fe5c70ee60" . "c8fac3eb36" . "f71" => base64_decode("b3Jk" . "ZXJh" . "Ymxl"), "k" . "e" . "y" => base64_decode("a2" . "V5"));
use Claromentis\Core\DataTable\Contract;






class Column implements \JsonSerializable
{
    const TYPE_LINK = "Link";
    const TYPE_ICON = "Icon";
    const TYPE_LABEL = "Label";
    
    
    
    
    
    protected $key;
    
    
    
    
    
    protected $name;
    
    
    
    
    protected $decorator;
    
    
    
    
    
    protected $orderable;
    
    
    
    
    
    public function __construct($key, $name)
    {
        $this->key = $key;
        $this->name = $name;
        $this->orderable = false;
    }
    
    
    
    
    
    public function SetDecorator(Contract\Decorator $_2e2ee510f512062f96daee84c4e3a0ca)
    {
        $this->decorator = $_2e2ee510f512062f96daee84c4e3a0ca;
    }
    
    
    
    
    
    public function GetDecorator()
    {
        return $this->decorator;
    }
    
    
    
    
    
    public function GetKey()
    {
        return $this->key;
    }
    
    
    
    
    
    public function GetName()
    {
        return $this->name;
    }
    
    
    
    
    
    
    public function SetOrderable($_ac6e49283fe5c70ee60c8fac3eb36f71)
    {
        $this->orderable = $_ac6e49283fe5c70ee60c8fac3eb36f71;
    }
    
    
    
    
    
    public function GetOrderable()
    {
        return $this->orderable;
    }
    
    
    
    
    
    
    
    
    function jsonSerialize()
    {
        $_ed5f03d686c37933b5943f295c6b4a43 = array($GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["ke" . "y"] => $this->key, $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["n" . "a" . "m" . "e"] => $this->name, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_ac6e4928" . "3fe5c70ee" . "60c8fac3e" . "b36f71"] => $this->orderable);
        if ($this->decorator) {
            $_ed5f03d686c37933b5943f295c6b4a43[$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_4ccaca2e2404a3eaee389511430" . "b7a62"]] = $this->decorator->GetTemplateHash();
        }
        return $_ed5f03d686c37933b5943f295c6b4a43;
    }
}