aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/ActivityStreams/OrderedCollectionPage.php
blob: 664802eff8378c6d4e3463cf6d58bb149e8b5115 (plain) (blame)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php

namespace Zotlabs\ActivityStreams;

/**
 * According to the specification, OrderedCollectionPage extends
 * both OrderedCollection and CollectionPage, but PHP is still a bit awkward
 * when it comes to multiple inheritance. Rather than try and do this with
 * traits, we'll just include the CollectionPage elements here - as this only
 * consists of three properties.
 */

class OrderedCollectionPage extends OrderedCollection
{
    public $partOf;
    public $next;
    public $prev;
    public $startIndex;

    /**
     * @return mixed
     */
    public function getPartOf()
    {
        return $this->partOf;
    }

    /**
     * @param mixed $partOf
     * @return OrderedCollectionPage
     */
    public function setPartOf($partOf)
    {
        $this->partOf = $partOf;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getNext()
    {
        return $this->next;
    }

    /**
     * @param mixed $next
     * @return OrderedCollectionPage
     */
    public function setNext($next)
    {
        $this->next = $next;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getPrev()
    {
        return $this->prev;
    }

    /**
     * @param mixed $prev
     * @return OrderedCollectionPage
     */
    public function setPrev($prev)
    {
        $this->prev = $prev;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getStartIndex()
    {
        return $this->startIndex;
    }

    /**
     * @param mixed $startIndex
     * @return OrderedCollectionPage
     */
    public function setStartIndex($startIndex)
    {
        $this->startIndex = $startIndex;
        return $this;
    }

}