<?php
require_once dirname(__DIR__).'/integration/AnalysisIntegration.php';
class ProductionGateway{
    private $integration;
    public function __construct(){ $this->integration=new AnalysisIntegration(); }
    public function execute($raceDate,$venue='',$raceNum=0){
        $p=$this->integration->payload($raceDate,$venue,$raceNum);
        return [
            'status'=>'OK',
            'gateway_version'=>'3.3',
            'payload'=>$p,
            'generated_at'=>date('c')
        ];
    }
}
