mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 01:15:13 +00:00
104 lines
1.6 KiB
PHP
104 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace Code\ActivityStreams;
|
|
|
|
class Collection extends ASObject
|
|
{
|
|
public $totalItems;
|
|
public $current;
|
|
public $first;
|
|
public $last;
|
|
public $items;
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getTotalItems()
|
|
{
|
|
return $this->totalItems;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $totalItems
|
|
* @return Collection
|
|
*/
|
|
public function setTotalItems($totalItems)
|
|
{
|
|
$this->totalItems = $totalItems;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getCurrent()
|
|
{
|
|
return $this->current;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $current
|
|
* @return Collection
|
|
*/
|
|
public function setCurrent($current)
|
|
{
|
|
$this->current = $current;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getFirst()
|
|
{
|
|
return $this->first;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $first
|
|
* @return Collection
|
|
*/
|
|
public function setFirst($first)
|
|
{
|
|
$this->first = $first;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getLast()
|
|
{
|
|
return $this->last;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $last
|
|
* @return Collection
|
|
*/
|
|
public function setLast($last)
|
|
{
|
|
$this->last = $last;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getItems()
|
|
{
|
|
return $this->items;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $items
|
|
* @return Collection
|
|
*/
|
|
public function setItems($items)
|
|
{
|
|
$this->items = $items;
|
|
return $this;
|
|
}
|
|
|
|
|
|
}
|