From 55d5cf1b065b186cc995ab48e0de2e8458afff47 Mon Sep 17 00:00:00 2001 From: kremsy Date: Thu, 23 Mar 2017 21:04:05 +0100 Subject: [PATCH] better name for the get Json --- core/Callbacks/Structures/BaseStructure.php | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/core/Callbacks/Structures/BaseStructure.php b/core/Callbacks/Structures/BaseStructure.php index 59a8ebfd..5aa15265 100644 --- a/core/Callbacks/Structures/BaseStructure.php +++ b/core/Callbacks/Structures/BaseStructure.php @@ -14,27 +14,18 @@ use ManiaControl\ManiaControl; abstract class BaseStructure { /** @var ManiaControl $maniaControl */ protected $maniaControl; - private $plainJson; + private $plainJsonObject; protected function __construct(ManiaControl $maniaControl, $data) { - $this->maniaControl = $maniaControl; - $this->setJson($data); + $this->maniaControl = $maniaControl; + $this->plainJsonObject = json_decode($data[0]); } - - /** - * Decodes the Data and Sets the Json - * - * @param array $data - */ - protected function setJson($data) { - $this->plainJson = json_decode($data[0]); - } - + /** * Gets the Plain Json */ - public function getJson() { - return $this->plainJson; + public function getPlainJsonObject() { + return $this->plainJsonObject; } /**