<?php
class EngineLifecycleManager{
private $state='initialized';
private $history=[];
public function boot(){ $this->state='booted'; $this->history[]=['boot',date('c')]; }
public function shutdown(){ $this->state='stopped'; $this->history[]=['shutdown',date('c')]; }
public function status(){ return ['state'=>$this->state,'history'=>$this->history];}
}
