OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
kreait
/
firebase-php
/
src
/
Firebase
/
RemoteConfig
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:35:39 AM
rwxr-xr-x
📄
ApiClient.php
3.92 KB
08/12/2024 10:35:39 AM
rw-r--r--
📄
Condition.php
1.98 KB
08/12/2024 10:35:39 AM
rw-r--r--
📄
ConditionalValue.php
1.17 KB
08/12/2024 10:35:39 AM
rw-r--r--
📄
DefaultValue.php
1.23 KB
08/12/2024 10:35:39 AM
rw-r--r--
📄
FindVersions.php
2.96 KB
08/12/2024 10:35:39 AM
rw-r--r--
📄
Parameter.php
3.63 KB
08/12/2024 10:35:39 AM
rw-r--r--
📄
ParameterGroup.php
1.41 KB
08/12/2024 10:35:39 AM
rw-r--r--
📄
TagColor.php
1.41 KB
08/12/2024 10:35:39 AM
rw-r--r--
📄
Template.php
5.92 KB
08/12/2024 10:35:39 AM
rw-r--r--
📄
UpdateOrigin.php
873 bytes
08/12/2024 10:35:39 AM
rw-r--r--
📄
UpdateType.php
942 bytes
08/12/2024 10:35:39 AM
rw-r--r--
📄
User.php
1.04 KB
08/12/2024 10:35:39 AM
rw-r--r--
📄
Version.php
2.78 KB
08/12/2024 10:35:39 AM
rw-r--r--
📄
VersionNumber.php
1017 bytes
08/12/2024 10:35:39 AM
rw-r--r--
Editing: Condition.php
Close
<?php declare(strict_types=1); namespace Kreait\Firebase\RemoteConfig; class Condition implements \JsonSerializable { private string $name; private string $expression; private ?TagColor $tagColor; private function __construct(string $name, string $expression, ?TagColor $tagColor = null) { $this->name = $name; $this->expression = $expression; $this->tagColor = $tagColor; } /** * @param array{ * name: string, * expression: string, * tagColor?: ?string * } $data */ public static function fromArray(array $data): self { return new self( $data['name'], $data['expression'], isset($data['tagColor']) ? new TagColor($data['tagColor']) : null ); } public static function named(string $name): self { return new self($name, 'false', null); } public function name(): string { return $this->name; } public function expression(): string { return $this->expression; } public function withExpression(string $expression): self { $condition = clone $this; $condition->expression = $expression; return $condition; } /** * @param TagColor|string $tagColor */ public function withTagColor($tagColor): self { $tagColor = $tagColor instanceof TagColor ? $tagColor : new TagColor($tagColor); $condition = clone $this; $condition->tagColor = $tagColor; return $condition; } /** * @return array<string, string> */ public function jsonSerialize(): array { return \array_filter([ 'name' => $this->name, 'expression' => $this->expression, 'tagColor' => $this->tagColor !== null ? $this->tagColor->value() : null, ], static fn ($value) => $value !== null); } }