mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 19:24:28 +02:00
25 lines
567 B
PHP
25 lines
567 B
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
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);
|
|
}
|
|
}
|