<?php
namespace Claromentis\Projects\Entity;

$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"] ?: array()) + array("_068ab9b" . "9340314c" . "5b07e3e5" . "cc31d925" . "b" => base64_decode("c29ydF9vcmRlcg" . "=="));
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["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_068ab9b9340314c5b07e3e5cc31d9" . "25b"]] ?? 0);
    }
    public function needsReordering() : bool
    {
        return $this->sort_order === 0 || $this->original_pos !== $this->sort_order;
    }
}