1
<?php
2

3
declare(strict_types=1);
4

5
namespace Kreait\Firebase\Exception\Messaging;
6

7
use Kreait\Firebase\Exception\HasErrors;
8
use Kreait\Firebase\Exception\MessagingException;
9
use RuntimeException;
10

11
final class AuthenticationError extends RuntimeException implements MessagingException
12
{
13
    use HasErrors;
14

15
    /**
16
     * @internal
17
     *
18
     * @param string[] $errors
19
     */
20 9
    public function withErrors(array $errors): self
21
    {
22 9
        $new = new self($this->getMessage(), $this->getCode(), $this->getPrevious());
23 9
        $new->errors = $errors;
24

25 9
        return $new;
26
    }
27
}

Read our documentation on viewing source code .

Loading