1 | <?php |
||
18 | class PaginationResult extends BasePaginationResult implements \JsonSerializable, Arrayable, Jsonable |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * The view factory resolver callback. |
||
23 | * |
||
24 | * @var \Closure |
||
25 | */ |
||
26 | protected static $viewFactoryResolver; |
||
27 | |||
28 | use Macroable { |
||
29 | __call as macroCall; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Make dynamic calls into the collection. |
||
34 | * |
||
35 | * @param string $method |
||
36 | * @param array $parameters |
||
37 | * @return mixed |
||
38 | */ |
||
39 | public function __call($method, array $parameters) |
||
47 | |||
48 | /** |
||
49 | * Set URL for the previous page. |
||
50 | * |
||
51 | * @return string|null |
||
52 | */ |
||
53 | public function makePreviousUrl($state) |
||
57 | |||
58 | /** |
||
59 | * Set URL for the next page. |
||
60 | * |
||
61 | * @return string|null |
||
62 | */ |
||
63 | public function makeNextUrl($state) |
||
67 | |||
68 | |||
69 | /** |
||
70 | * Set URL for the next page. |
||
71 | * |
||
72 | * @return string|null |
||
73 | */ |
||
74 | public function setTabID($tab) |
||
78 | |||
79 | |||
80 | /** |
||
81 | * Get the URL. |
||
82 | * |
||
83 | * @return string |
||
84 | */ |
||
85 | public function url($direction, $state) |
||
90 | |||
91 | /** |
||
92 | * Get the instance as an array. |
||
93 | * |
||
94 | * @return array |
||
95 | */ |
||
96 | public function toArray() |
||
104 | |||
105 | /** |
||
106 | * Convert the object into something JSON serializable. |
||
107 | * |
||
108 | * @return mixed |
||
109 | */ |
||
110 | public function jsonSerialize() |
||
114 | |||
115 | /** |
||
116 | * Convert the object to its JSON representation. |
||
117 | * |
||
118 | * @param int $options |
||
119 | * @return string |
||
120 | */ |
||
121 | public function toJson($options = 0) |
||
125 | } |
||
126 |