mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
42 lines
822 B
PHP
42 lines
822 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Implementation of hook response class
|
||
|
*
|
||
|
* @category DMS
|
||
|
* @package SeedDMS
|
||
|
* @license GPL 2
|
||
|
* @version @version@
|
||
|
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||
|
* @copyright Copyright (C) 2017 Uwe Steinmann
|
||
|
* @version Release: @package_version@
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Parent class for all hook response classes
|
||
|
*
|
||
|
* @category DMS
|
||
|
* @package SeedDMS
|
||
|
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||
|
* @copyright Copyright (C) 2017 Uwe Steinmann
|
||
|
* @version Release: @package_version@
|
||
|
*/
|
||
|
class SeedDMS_Hook_Response {
|
||
|
protected $data;
|
||
|
|
||
|
protected $error;
|
||
|
|
||
|
public function __construct($error = false, $data = null) {
|
||
|
$this->data = $data;
|
||
|
$this->error = $error;
|
||
|
}
|
||
|
|
||
|
public function setData($data) {
|
||
|
$this->data = $data;
|
||
|
}
|
||
|
|
||
|
public function getData() {
|
||
|
return $this->data;
|
||
|
}
|
||
|
}
|
||
|
|