<?php
namespace App\Galileo\StructureParser\Structures\Base; abstract class Base extends \App\Utils\BaseParser\Structure\StructureParser\Structures\Base\Base { protected $cachedResponse = null; public function getData() { if ($this->cachedResponse===null) { $this->cachedResponse = $this->_getData(); } return $this->cachedResponse; } protected function getTransactionDetails() { return $this->transaction->getTransactionDetails(); } abstract protected function _getData(); } 