public function __construct($parent, $alias, $name, $args = [])
{
$this->parent = $parent === Runtime::PARENT_UNDEFINED || $parent === Runtime::RESERVED_CONSOLE_SERVER ? null : $parent;
$this->alias = $alias;
$this->name = $name;
$this->args = $args;
$this->state = Runtime::STATE_DESTROYED;
$this->core = null;
$this->manager = null;
$this->loop = null;
$this->loopBackup = null;
$this->loopState = self::LOOP_STATE_STOPPED;
$this->loopNextState = self::LOOP_STATE_STOPPED;
$this->supervisor = null;
$this->eventEmitter = null;
$this->failureHash = null;
}