<?php
namespace Claromentis\Projects\Entity;

$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"] ?: array()) + array("_068ab9b9340314c5b07e3e5cc31" . "d925b" => base64_decode("c29ydF9vcm" . "Rlcg=="));
use Analogue\ORM\Entity;
use Claromentis\Core\ORM\Behaviors\Casts;









class TaskStatus extends Entity
{
    use Casts;
    protected $casts = ['id' => 'int', 'project_id' => 'int', 'sort_order' => 'int'];
    
    
    
    
    protected $original_pos = 0;
    public function setEntityAttributes(array $_1d13d2740ebaf66eca764580f12eb517)
    {
        parent::setEntityAttributes($_1d13d2740ebaf66eca764580f12eb517);
        $this->original_pos = (int) ($_1d13d2740ebaf66eca764580f12eb517[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_068ab9b934031" . "4c5b07e3e5cc31" . "d925b"]] ?? 0);
    }
    public function needsReordering() : bool
    {
        return $this->sort_order === 0 || $this->original_pos !== $this->sort_order;
    }
}