-
Notifications
You must be signed in to change notification settings - Fork 1
/
HessianInterfaces.php
executable file
·48 lines (44 loc) · 1.12 KB
/
HessianInterfaces.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/*
* This file is part of the HessianPHP package.
* (c) 2004-2010 Manuel Gómez
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Defines a contract for object creation used by the decoders
*/
interface IHessianObjectFactory{
public function getObject($type);
public function setOptions(HessianOptions $options);
}
/**
* Used for custom writers that handle a particular class type
* @author vsayajin
*/
interface IHessianCustomWriter{
function write($writer, $data);
}
class HessianCallingContext{
public $writer;
public $parser;
public $transport;
public $typemap;
public $options;
public $stream;
public $isClient = true;
public $call;
public $url;
public $payload;
public $error;
}
/**
* Defines a contract for an interceptor that executes around calls to remote services
* in both client and servers
* @author vsayajin
*/
interface IHessianInterceptor{
function beforeRequest(HessianCallingContext $context);
function afterRequest(HessianCallingContext $context);
}