<?php require_once __DIR__.'/ScraperInterface.php';abstract class BaseScraper implements ScraperInterface { protected function result($rate,$fee,$delivery,$raw=array()){return array('rate'=>(float)$rate,'fee'=>(float)$fee,'delivery'=>$delivery,'raw'=>$raw,'captured_at'=>gmdate('c'));} protected function fail($message){throw new RuntimeException($message);} }