Spamworldpro Mini Shell
Spamworldpro


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/DynamicLink/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/medad.corals.io/vendor/kreait/firebase-php/src/Firebase/DynamicLink/IOSInfo.php
<?php

declare(strict_types=1);

namespace Kreait\Firebase\DynamicLink;

use JsonSerializable;

final class IOSInfo implements JsonSerializable
{
    /** @var array<string, string> */
    private array $data = [];

    private function __construct()
    {
    }

    /**
     * @param array<string, string> $data
     */
    public static function fromArray(array $data): self
    {
        $info = new self();
        $info->data = $data;

        return $info;
    }

    public static function new(): self
    {
        return new self();
    }

    /**
     * The bundle ID of the iOS app to use to open the link. The app must be connected to your project from the
     * Overview page of the Firebase console. Required for the Dynamic Link to open an iOS app.
     */
    public function withBundleId(string $bundleId): self
    {
        $info = clone $this;
        $info->data['iosBundleId'] = $bundleId;

        return $info;
    }

    /**
     * The link to open when the app isn't installed. Specify this to do something other than install your app from the
     * App Store when the app isn't installed, such as open the mobile web version of the content, or display a
     * promotional page for your app.
     */
    public function withFallbackLink(string $fallbackLink): self
    {
        $info = clone $this;
        $info->data['iosFallbackLink'] = $fallbackLink;

        return $info;
    }

    /**
     * Your app's custom URL scheme, if defined to be something other than your app's bundle ID.
     */
    public function withCustomScheme(string $customScheme): self
    {
        $info = clone $this;
        $info->data['iosCustomScheme'] = $customScheme;

        return $info;
    }

    /**
     * The link to open on iPads when the app isn't installed. Specify this to do something other than install your
     * app from the App Store when the app isn't installed, such as open the web version of the content, or
     * display a promotional page for your app.
     */
    public function withIPadFallbackLink(string $ipadFallbackLink): self
    {
        $info = clone $this;
        $info->data['iosIpadFallbackLink'] = $ipadFallbackLink;

        return $info;
    }

    /**
     * The bundle ID of the iOS app to use on iPads to open the link. The app must be connected to your project from
     * the Overview page of the Firebase console.
     */
    public function withIPadBundleId(string $iPadBundleId): self
    {
        $info = clone $this;
        $info->data['iosIpadBundleId'] = $iPadBundleId;

        return $info;
    }

    /**
     * Your app's App Store ID, used to send users to the App Store when the app isn't installed.
     */
    public function withAppStoreId(string $appStoreId): self
    {
        $info = clone $this;
        $info->data['iosAppStoreId'] = $appStoreId;

        return $info;
    }

    /**
     * @return array<string, string>
     */
    public function jsonSerialize(): array
    {
        return $this->data;
    }
}

Spamworldpro Mini