o
    Vh                     @  sT   d dl mZ d dlmZ d dlmZ er d dlmZ d dlm	Z	 G dd deZ
dS )	    )annotations)TYPE_CHECKING)ConsoleEvent)Command)IOc                      s:   e Zd ZdZd fd
dZedddZdddZ  ZS )ConsoleTerminateEventzA
    An event triggered by after the execution of a command.
    commandr   ior   	exit_codeintreturnNonec                   s   t  || || _d S N)super__init__
_exit_code)selfr   r	   r
   	__class__ w/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/cleo/events/console_terminate_event.pyr      s   
zConsoleTerminateEvent.__init__c                 C  s   | j S r   r   )r   r   r   r   r
      s   zConsoleTerminateEvent.exit_codec                 C  s
   || _ d S r   r   )r   r
   r   r   r   set_exit_code   s   
z#ConsoleTerminateEvent.set_exit_code)r   r   r	   r   r
   r   r   r   )r   r   )r
   r   r   r   )	__name__
__module____qualname____doc__r   propertyr
   r   __classcell__r   r   r   r   r      s    r   N)
__future__r   typingr   cleo.events.console_eventr   cleo.commands.commandr   
cleo.io.ior   r   r   r   r   r   <module>   s    