OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
kreait
/
firebase-php
/
tests
/
Unit
/
Util
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:35:44 AM
rwxr-xr-x
📄
AuthError.php
982 bytes
08/12/2024 10:35:43 AM
rw-r--r--
📄
DTTest.php
2.67 KB
08/12/2024 10:35:43 AM
rw-r--r--
📄
JSONTest.php
1.31 KB
08/12/2024 10:35:44 AM
rw-r--r--
Editing: AuthError.php
Close
<?php declare(strict_types=1); namespace Kreait\Firebase\Tests\Unit\Util; use JsonSerializable; final class AuthError implements JsonSerializable { private string $message; private int $code; private string $reason; private string $domain; public function __construct(string $message, ?int $code = null, ?string $reason = null, ?string $domain = null) { $this->message = $message; $this->code = $code ?? 400; $this->reason = $reason ?? 'invalid'; $this->domain = $domain ?? 'global'; } public function jsonSerialize() { return [ 'error' => [ 'errors' => [ 'domain' => $this->domain, 'reason' => $this->reason, 'message' => $this->message, ], ], 'code' => $this->code, 'message' => $this->message, ]; } }