<?php
namespace Claromentis\Projects\Subscribers;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"] ?: array()) + array("_56c8397" . "00204253" . "8ae06a3c" . "146aa370" . "e" => base64_decode("b25TdGF" . "0dXNQcm" . "VEZWxld" . "GU="), "messa" . "ge" => base64_decode("bWVzc2F" . "nZQ=="), "_7bb5a3f4c1bd5653ea673e76123739" . "07" => base64_decode("Q2Fubm90IGRlb" . "GV0ZSBzdGF0dX" . "MgdGhhdCBpcyB" . "iZWluZyB1c2Vk"));
use Claromentis\Projects\Entity\TaskStatus;
use Claromentis\Projects\Repository\TaskRepository;
use Claromentis\Projects\TaskStatusEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
class TaskStatusSubscriber implements EventSubscriberInterface
{
    
    
    
    
    protected $task_provider;
    public function __construct(TaskRepository $_80dbb173aec1360cc46e0d037d5c9728)
    {
        $this->task_provider = $_80dbb173aec1360cc46e0d037d5c9728;
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    public static function getSubscribedEvents()
    {
        return [TaskStatusEvents::PRE_DELETE => $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_56c8397002042538ae06a3c146aa3" . "70e"]];
    }
    public function onStatusPreDelete(GenericEvent $_e62ca7bbb93b52cafc82da1c2aefe9ec)
    {
        
        
        $status = $_e62ca7bbb93b52cafc82da1c2aefe9ec->getSubject();
        $_0ea4e32b57963ac0cb3057e03e9aef64 = $status->id;
        if ($this->task_provider->StatusHasTasks($_0ea4e32b57963ac0cb3057e03e9aef64)) {
            $_e62ca7bbb93b52cafc82da1c2aefe9ec->setArgument($GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["mes" . "sag" . "e"], $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_7bb5a3f4c1bd5653ea6" . "73e7612373907"]);
            $_e62ca7bbb93b52cafc82da1c2aefe9ec->stopPropagation();
        }
    }
}