![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/medad.corals.io/vendor/kreait/firebase-php/src/Firebase/Contract/ |
<?php declare(strict_types=1); namespace Kreait\Firebase\Contract; use Kreait\Firebase\Exception\RemoteConfig\ValidationFailed; use Kreait\Firebase\Exception\RemoteConfig\VersionNotFound; use Kreait\Firebase\Exception\RemoteConfigException; use Kreait\Firebase\RemoteConfig\FindVersions; use Kreait\Firebase\RemoteConfig\Template; use Kreait\Firebase\RemoteConfig\Version; use Kreait\Firebase\RemoteConfig\VersionNumber; use Traversable; /** * The Firebase Remote Config. * * @see https://firebase.google.com/docs/remote-config/use-config-rest * @see https://firebase.google.com/docs/remote-config/rest-reference * * @phpstan-import-type RemoteConfigTemplateShape from Template */ interface RemoteConfig { /** * @throws RemoteConfigException if something went wrong */ public function get(): Template; /** * Validates the given template without publishing it. * * @param Template|RemoteConfigTemplateShape $template * * @throws ValidationFailed if the validation failed * @throws RemoteConfigException */ public function validate($template): void; /** * @param Template|RemoteConfigTemplateShape $template * * @throws RemoteConfigException * * @return non-empty-string The etag value of the published template that can be compared to in later calls */ public function publish($template): string; /** * Returns a version with the given number. * * @param VersionNumber|int|string $versionNumber * * @throws VersionNotFound * @throws RemoteConfigException if something went wrong */ public function getVersion($versionNumber): Version; /** * Returns a version with the given number. * * @param VersionNumber|int|string $versionNumber * * @throws VersionNotFound * @throws RemoteConfigException if something went wrong */ public function rollbackToVersion($versionNumber): Template; /** * @param FindVersions|array<string, mixed>|null $query * * @throws RemoteConfigException if something went wrong * * @return Traversable<Version>|Version[] */ public function listVersions($query = null): Traversable; }