Refactoring

This commit is contained in:
gamonoid
2017-09-03 20:39:22 +02:00
parent af40881847
commit a7274d3cfd
5075 changed files with 238202 additions and 16291 deletions

View File

@@ -0,0 +1,52 @@
<?php
/**
* Created by PhpStorm.
* User: Thilina
* Date: 8/20/17
* Time: 9:50 AM
*/
namespace Classes;
class IceResponse
{
const SUCCESS = "SUCCESS";
const ERROR = "ERROR";
var $status;
var $data;
var $code;
public function __construct($status, $data = null, $code = null)
{
$this->status = $status;
$this->data = $data;
$this->code = $code;
}
public function getStatus()
{
return $this->status;
}
public function getData()
{
return $this->data;
}
public function getObject()
{
return $this->data;
}
public function getCode()
{
return $this->code;
}
public function getJsonArray()
{
return array("status"=>$this->status,"data"=>$this->data);
}
}