1 | <?php |
||
34 | class ApaiIO |
||
35 | { |
||
36 | const VERSION = "2.0.0-DEV"; |
||
37 | |||
38 | /** |
||
39 | * Configuration. |
||
40 | * |
||
41 | * @var ConfigurationInterface |
||
42 | */ |
||
43 | protected $configuration; |
||
44 | |||
45 | /** |
||
46 | * @param ConfigurationInterface $configuration |
||
47 | */ |
||
48 | 2 | public function __construct(ConfigurationInterface $configuration = null) |
|
52 | |||
53 | /** |
||
54 | * @param ConfigurationInterface $configuration |
||
55 | */ |
||
56 | public function setConfiguration(ConfigurationInterface $configuration) |
||
60 | |||
61 | /** |
||
62 | * Runs the given operation. |
||
63 | * |
||
64 | * @param OperationInterface $operation The operationobject |
||
65 | * |
||
66 | * @return mixed |
||
67 | */ |
||
68 | 2 | public function runOperation(OperationInterface $operation) |
|
76 | |||
77 | /** |
||
78 | * Applies a responsetransformer. |
||
79 | * |
||
80 | * @param mixed $response The response of the request |
||
81 | * |
||
82 | * @return mixed |
||
83 | */ |
||
84 | 2 | protected function applyResponseTransformer($response) |
|
92 | } |
||
93 |