better name for the get Json
This commit is contained in:
parent
bb10a6a784
commit
55d5cf1b06
@ -14,27 +14,18 @@ use ManiaControl\ManiaControl;
|
|||||||
abstract class BaseStructure {
|
abstract class BaseStructure {
|
||||||
/** @var ManiaControl $maniaControl */
|
/** @var ManiaControl $maniaControl */
|
||||||
protected $maniaControl;
|
protected $maniaControl;
|
||||||
private $plainJson;
|
private $plainJsonObject;
|
||||||
|
|
||||||
protected function __construct(ManiaControl $maniaControl, $data) {
|
protected function __construct(ManiaControl $maniaControl, $data) {
|
||||||
$this->maniaControl = $maniaControl;
|
$this->maniaControl = $maniaControl;
|
||||||
$this->setJson($data);
|
$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
|
* Gets the Plain Json
|
||||||
*/
|
*/
|
||||||
public function getJson() {
|
public function getPlainJsonObject() {
|
||||||
return $this->plainJson;
|
return $this->plainJsonObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user