<?php
namespace App\Apollo\StructureParser\Structures\Base; abstract class Price extends \App\Utils\BaseParser\Structure\StructureParser\Structures\Base\Price { 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(); } 