xref: /dokuwiki/inc/Remote/Response/MediaChange.php (revision 58ae4747de65e434e2a4f2d10822e363198c89b8)
1*58ae4747SAndreas Gohr<?php
2*58ae4747SAndreas Gohr
3*58ae4747SAndreas Gohrnamespace dokuwiki\Remote\Response;
4*58ae4747SAndreas Gohr
5*58ae4747SAndreas Gohr/**
6*58ae4747SAndreas Gohr * Represents a single change in a media file
7*58ae4747SAndreas Gohr */
8*58ae4747SAndreas Gohrclass MediaChange extends ApiResponse
9*58ae4747SAndreas Gohr{
10*58ae4747SAndreas Gohr    /** @var string The media ID */
11*58ae4747SAndreas Gohr    public $id;
12*58ae4747SAndreas Gohr    /** @var int The revision (timestamp) of this change */
13*58ae4747SAndreas Gohr    public $revision;
14*58ae4747SAndreas Gohr    /** @var string The author of this change */
15*58ae4747SAndreas Gohr    public $author;
16*58ae4747SAndreas Gohr    /** @var string The IP address from where this change was made */
17*58ae4747SAndreas Gohr    public $ip;
18*58ae4747SAndreas Gohr    /** @var string The summary of this change */
19*58ae4747SAndreas Gohr    public $summary;
20*58ae4747SAndreas Gohr    /** @var string The type of this change */
21*58ae4747SAndreas Gohr    public $type;
22*58ae4747SAndreas Gohr    /** @var int The change in bytes */
23*58ae4747SAndreas Gohr    public $sizechange;
24*58ae4747SAndreas Gohr
25*58ae4747SAndreas Gohr    /**
26*58ae4747SAndreas Gohr     * MediaChange constructor.
27*58ae4747SAndreas Gohr     *
28*58ae4747SAndreas Gohr     * @param string $id
29*58ae4747SAndreas Gohr     * @param int $revision
30*58ae4747SAndreas Gohr     * @param string $author
31*58ae4747SAndreas Gohr     * @param string $ip
32*58ae4747SAndreas Gohr     * @param string $summary
33*58ae4747SAndreas Gohr     * @param string $type
34*58ae4747SAndreas Gohr     * @param int $sizechange
35*58ae4747SAndreas Gohr     */
36*58ae4747SAndreas Gohr    public function __construct($id, $revision, $author, $ip, $summary, $type, $sizechange)
37*58ae4747SAndreas Gohr    {
38*58ae4747SAndreas Gohr        $this->id = $id;
39*58ae4747SAndreas Gohr        $this->revision = $revision;
40*58ae4747SAndreas Gohr        $this->author = $author;
41*58ae4747SAndreas Gohr        $this->ip = $ip;
42*58ae4747SAndreas Gohr        $this->summary = $summary;
43*58ae4747SAndreas Gohr        $this->type = $type;
44*58ae4747SAndreas Gohr        $this->sizechange = $sizechange;
45*58ae4747SAndreas Gohr    }
46*58ae4747SAndreas Gohr}
47