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

$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"] = (@$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] ?: array()) + array("_71db993b3c6433" . "2f0a518269e45b3" . "912" => base64_decode("JXMuJXMgPSAoU0VMRUNUIENPVU5UKGlkKSBGUk9NIHByb2plY3RzX3Rhc2sgV0hFUkUgcHJvamVjdF9pZD0lcy5pZCBBTkQgc3RhdHVzX2lkP" . "D4lcyk="), "_81b8d2aed40a" . "d78c5a7fe0cc2" . "6c1c94d" => base64_decode("JXMuJXMgPSAoU0VMRUNUIENPVU5UKGlkKSBGUk9NIHByb2plY3RzX3Rhc2sgV0hFUkUgcHJvam" . "VjdF9pZD0lcy5pZCBBTkQgc3RhdHVzX2lkPSVzKQ=="), "_7a0e6291d98e6a6462f1fe366868d" . "5db" => base64_decode("JXMuJXM" . "="), "_6596b8f6a4969f9a3f6a1b22b90e93" . "31" => base64_decode("c3ByaW50Z" . "g=="));
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["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_6596b8f6" . "a4969f9a3" . "f6a1b22b9" . "0e9331"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_81b8d2aed40ad7" . "8c5a7fe0cc26c1c" . "94d"], $_f5ccc9e009e9c213fed012d6655c1325, $this->name, $_f5ccc9e009e9c213fed012d6655c1325, Task::STATUS_COMPLETED);
        } else {
            $_d962cfd1735adb2dfba46f69c7f15cb8 = $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_6596b8f6a4969f9a3f6a1b22" . "b90e9331"]($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_71db993b3c64332f0a518269e45b" . "3912"], $_f5ccc9e009e9c213fed012d6655c1325, $this->name, $_f5ccc9e009e9c213fed012d6655c1325, Task::STATUS_COMPLETED);
        }
        return $_d962cfd1735adb2dfba46f69c7f15cb8;
    }
    public function GetSortableQueryPart($_f5ccc9e009e9c213fed012d6655c1325, $_8b42294925f0143ddad7e65905f0b8d6)
    {
        return $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_6596b8f6a4969" . "f9a3f6a1b22b90" . "e9331"]($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_7a0e6291d98e" . "6a6462f1fe366" . "868d5db"], $_f5ccc9e009e9c213fed012d6655c1325, $this->name);
    }
    public function GetFilter()
    {
        return null;
    }
    public function FormatValue($_71f6a5b5840d77d6f5700b8129d32c14, array $_61fbb5071d97b5eb5a2d82e386e63d7b = [])
    {
        return (int) $_71f6a5b5840d77d6f5700b8129d32c14;
    }
}