CasperSecurity

Current Path : /var/www/orientalss.com/vendor/meilisearch/meilisearch-php/src/Contracts/
Upload File :
Current File : /var/www/orientalss.com/vendor/meilisearch/meilisearch-php/src/Contracts/NetworkResults.php

<?php

declare(strict_types=1);

namespace Meilisearch\Contracts;

/**
 * @phpstan-type RemoteConfig array{url: non-empty-string, searchApiKey: non-empty-string, writeApiKey: non-empty-string}
 */
class NetworkResults extends Data
{
    /**
     * @var non-empty-string the identifier for the local node
     */
    private string $self;

    /**
     * @var array<non-empty-string, RemoteConfig> a mapping of remote node IDs to their connection details
     */
    private array $remotes;

    /**
     * @param array{
     *     self?: non-empty-string,
     *     remotes?: array<non-empty-string, RemoteConfig>
     * } $params
     */
    public function __construct(array $params)
    {
        parent::__construct($params);

        $this->self = $params['self'] ?? '';
        $this->remotes = $params['remotes'] ?? [];
    }

    /**
     * @return non-empty-string the identifier for the local node
     */
    public function getSelf(): string
    {
        return $this->self;
    }

    /**
     * @return array<non-empty-string, RemoteConfig>
     */
    public function getRemotes(): array
    {
        return $this->remotes;
    }
}
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY