mirror of
https://github.com/friendica/friendica
synced 2024-05-18 00:46:42 +02:00
21 lines
408 B
PHP
21 lines
408 B
PHP
|
<?php
|
||
|
|
||
|
namespace Friendica\Collection\Api\Mastodon;
|
||
|
|
||
|
use Friendica\Api\Entity\Mastodon\Field;
|
||
|
use Friendica\BaseCollection;
|
||
|
|
||
|
class Fields extends BaseCollection
|
||
|
{
|
||
|
/**
|
||
|
* @param Field[] $entities
|
||
|
* @param int|null $totalCount
|
||
|
*/
|
||
|
public function __construct(array $entities = [], int $totalCount = null)
|
||
|
{
|
||
|
parent::__construct($entities);
|
||
|
|
||
|
$this->totalCount = $totalCount ?? count($entities);
|
||
|
}
|
||
|
}
|