xref: /dokuwiki/inc/Remote/Response/ApiResponse.php (revision 0caa81c70023f1e9557c4b6769a9ff200df17a19)
1<?php
2
3namespace dokuwiki\Remote\Response;
4
5/**
6 * These are simple data objects that hold the response data API calls
7 *
8 * They are transmitted as associative arrays automatically created by
9 * converting the object to an array
10 */
11abstract class ApiResponse
12{
13    /**
14     * Initialize the response object with the given data
15     *
16     * Each response object has different properties and might get passed different data from
17     * various internal methods. The constructor should handle all of that and also fill up
18     * missing properties when needed.
19     *
20     * @param array $data
21     */
22    abstract public function __construct($data);
23}
24