2015-06-26 11:48:21 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace ManiaControl\Communication;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class for Answer of Communication Request
|
|
|
|
*
|
|
|
|
* @author ManiaControl Team <mail@maniacontrol.com>
|
2016-05-04 09:57:31 +02:00
|
|
|
* @copyright 2014-2016 ManiaControl Team
|
2015-06-26 11:48:21 +02:00
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
|
|
|
*/
|
|
|
|
class CommunicationAnswer {
|
|
|
|
/** Properties are Public for serialization */
|
|
|
|
public $error;
|
|
|
|
public $data;
|
|
|
|
|
2015-06-26 11:51:23 +02:00
|
|
|
/**
|
|
|
|
* @param string $data
|
|
|
|
* @param bool $error
|
|
|
|
*/
|
2015-06-26 11:48:21 +02:00
|
|
|
public function __construct($data = "", $error = false) {
|
|
|
|
$this->data = $data;
|
|
|
|
$this->error = $error;
|
|
|
|
}
|
|
|
|
}
|