mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Add type hints in Mastodon\Instance
This commit is contained in:
parent
258476e14f
commit
e4fa1aa418
1 changed files with 18 additions and 34 deletions
|
@ -24,40 +24,24 @@ use Friendica\Object\Api\Mastodon\InstanceV2\Configuration;
|
|||
*/
|
||||
class Instance extends BaseDataTransferObject
|
||||
{
|
||||
/** @var string (URL) */
|
||||
protected $uri;
|
||||
/** @var string */
|
||||
protected $title;
|
||||
/** @var string */
|
||||
protected $short_description;
|
||||
/** @var string */
|
||||
protected $description;
|
||||
/** @var string */
|
||||
protected $email;
|
||||
/** @var string */
|
||||
protected $version;
|
||||
/** @var array */
|
||||
protected $urls;
|
||||
/** @var Stats */
|
||||
protected $stats;
|
||||
/** @var string|null This is meant as a server banner, default Mastodon "thumbnail" is 1600×620px */
|
||||
protected $thumbnail = null;
|
||||
/** @var array */
|
||||
protected $languages;
|
||||
/** @var int */
|
||||
protected $max_toot_chars;
|
||||
/** @var bool */
|
||||
protected $registrations;
|
||||
/** @var bool */
|
||||
protected $approval_required;
|
||||
/** @var bool */
|
||||
protected $invites_enabled;
|
||||
/** @var Configuration */
|
||||
protected $configuration;
|
||||
/** @var Account|null */
|
||||
protected $contact_account = null;
|
||||
/** @var array */
|
||||
protected $rules = [];
|
||||
protected string $uri;
|
||||
protected string $title;
|
||||
protected string $short_description;
|
||||
protected string $description;
|
||||
protected string $email;
|
||||
protected string $version;
|
||||
protected array $urls;
|
||||
protected Stats $stats;
|
||||
/** This is meant as a server banner, default Mastodon "thumbnail" is 1600×620px */
|
||||
protected ?string $thumbnail = null;
|
||||
protected array $languages;
|
||||
protected int $max_toot_chars;
|
||||
protected bool $registrations;
|
||||
protected bool $approval_required;
|
||||
protected bool $invites_enabled;
|
||||
protected Configuration $configuration;
|
||||
protected ?Account $contact_account = null;
|
||||
protected array $rules = [];
|
||||
|
||||
public function __construct(IManageConfigValues $config, BaseURL $baseUrl, Database $database, Configuration $configuration, ?Account $contact_account, array $rules)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue