better name for the get Json

This commit is contained in:
kremsy 2017-03-23 21:04:05 +01:00
parent bb10a6a784
commit 55d5cf1b06

View File

@ -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);
}
/**
* Decodes the Data and Sets the Json
*
* @param array $data
*/
protected function setJson($data) {
$this->plainJson = json_decode($data[0]);
$this->maniaControl = $maniaControl;
$this->plainJsonObject = json_decode($data[0]);
}
/**
* Gets the Plain Json
*/
public function getJson() {
return $this->plainJson;
public function getPlainJsonObject() {
return $this->plainJsonObject;
}
/**