<?php
namespace App\Sabre\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; } public function getTransaction() { return $this->transaction; } protected function getTransactionDetails() { return $this->transaction->getTransactionDetails(); } abstract protected function _getData(); } 