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 {
|
||||
/** @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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user