<?php
namespace Claromentis\Projects\Reports\Columns;

$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"] = (@$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"] ?: array()) + array("_71db993b3c64" . "332f0a518269e" . "45b3912" => base64_decode("JXMuJXMgPSAoU0VMRUNUIENPVU5UKGlkKSBGUk9NIHByb2plY3RzX3Rhc2sgV0hFUkUgcHJvamVjdF9pZD0lcy5pZCBBTkQgc3RhdHVzX2lkPD4lc" . "yk="), "_7a0e6291" . "d98e6a646" . "2f1fe3668" . "68d5db" => base64_decode("JXMuJX" . "M="), "_6596b8f6a4969f9a3f6a1b22b90e9" . "331" => base64_decode("c3Bya" . "W50Zg" . "=="), "_81b8d2aed40ad78c5a7fe0cc26c" . "1c94d" => base64_decode("JXMuJXMgPSAoU0VMRUNUIENPVU5UKGlkKSBGUk9NIHByb2plY3RzX3Rhc2sgV0h" . "FUkUgcHJvamVjdF9pZD0lcy5pZCBBTkQgc3RhdHVzX2lkPSVzKQ=="));
use Claromentis\Projects\Model\Task;
use Claromentis\Reports\Interfaces\ColumnInterface;
class TasksCount implements ColumnInterface
{
    
    
    
    
    protected $name;
    
    
    
    
    protected $completed;
    
    
    
    
    protected $task_table_name;
    public function __construct(string $_8dabb06efc95df4cff7c4afe91857b53, string $_4318ee960a9995da8df55bd55b1b6d4f, bool $_64666bcf1e5aaa07774f3d7439ff264d)
    {
        $this->name = $_8dabb06efc95df4cff7c4afe91857b53;
        $this->completed = $_64666bcf1e5aaa07774f3d7439ff264d;
        $this->task_table_name = $_4318ee960a9995da8df55bd55b1b6d4f;
    }
    public function GetName()
    {
        return $this->name;
    }
    public function GetQueryPart($_f5ccc9e009e9c213fed012d6655c1325, $_8b42294925f0143ddad7e65905f0b8d6)
    {
        if ($this->completed) {
            $_d962cfd1735adb2dfba46f69c7f15cb8 = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_6596b8f6a4969f9a3f6a1b2" . "2b90e9331"]($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_81b8d2aed40ad78c5a7fe0cc26c1c94" . "d"], $_f5ccc9e009e9c213fed012d6655c1325, $this->name, $_f5ccc9e009e9c213fed012d6655c1325, Task::STATUS_COMPLETED);
        } else {
            $_d962cfd1735adb2dfba46f69c7f15cb8 = $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_6596b8f6a49" . "69f9a3f6a1b2" . "2b90e9331"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_71db993b3c64332f0a518" . "269e45b3912"], $_f5ccc9e009e9c213fed012d6655c1325, $this->name, $_f5ccc9e009e9c213fed012d6655c1325, Task::STATUS_COMPLETED);
        }
        return $_d962cfd1735adb2dfba46f69c7f15cb8;
    }
    public function GetSortableQueryPart($_f5ccc9e009e9c213fed012d6655c1325, $_8b42294925f0143ddad7e65905f0b8d6)
    {
        return $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_6596b8f6a4969f9a3f" . "6a1b22b90e9331"]($GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_7a0e6291d98e6a64" . "62f1fe366868d5db"], $_f5ccc9e009e9c213fed012d6655c1325, $this->name);
    }
    public function GetFilter()
    {
        return null;
    }
    public function FormatValue($_71f6a5b5840d77d6f5700b8129d32c14, array $_61fbb5071d97b5eb5a2d82e386e63d7b = [])
    {
        return (int) $_71f6a5b5840d77d6f5700b8129d32c14;
    }
}