<?php
namespace Claromentis\Projects\Entity;

$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"] ?: array()) + array("_068ab9b93" . "40314c5b07" . "e3e5cc31d9" . "25b" => base64_decode("c29ydF9vcmRlc" . "g=="));
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["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_068ab9b9340314c5b07e3e" . "5cc31d925b"]] ?? 0);
    }
    public function needsReordering() : bool
    {
        return $this->sort_order === 0 || $this->original_pos !== $this->sort_order;
    }
}