<?php

namespace Licenzo\Framework\Foundation;

abstract class Terminator
{
    protected $app;
    public function __construct(Application $app)
    {
        $this->app = $app;
    }

    /**
     * Terminate and cleanup services
     *
     * This method is called during application shutdown.
     * Use this to clean up resources, close connections, etc.
     *
     * @return void
     */
    public function terminate()
    {
        // Override in child classes
    }
}
