<?php
 namespace App\Mvc; abstract class View_RemoteDataInfoBoxAbstract extends \App\Mvc\ViewAbstract { public function render() { $output = $this->getRemoteDetails(); if ( !($output instanceof \Engine\RemoteData\InfoBox\Container_Main) ) { throw new \Exception('getRemoteDetails() should return class \Engine\RemoteData\InfoBox\Container_Main. Please check class '.get_called_class().'.'); } return $output->exportAsArray(); } abstract protected function getRemoteDetails(); } 