mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:10:11 +00:00
Add DDD classes for Mastodon\Field entity
This commit is contained in:
parent
5670c19d5c
commit
07a4bb73fa
4 changed files with 76 additions and 1 deletions
20
src/Collection/Api/Mastodon/Fields.php
Normal file
20
src/Collection/Api/Mastodon/Fields.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue