• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daycry / auth / 25552752016

08 May 2026 11:20AM UTC coverage: 71.592% (+13.0%) from 58.608%
25552752016

push

github

web-flow
Merge pull request #48 from daycry/development

Add Laravel-parity authentication features: Gates, Password Confirmation, Basic Auth

198 of 252 new or added lines in 18 files covered. (78.57%)

1 existing line in 1 file now uncovered.

4453 of 6220 relevant lines covered (71.59%)

62.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/src/Authorization/AuthorizationException.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * This file is part of Daycry Auth.
7
 *
8
 * (c) Daycry <daycry9@proton.me>
9
 *
10
 * For the full copyright and license information, please view
11
 * the LICENSE file that was distributed with this source code.
12
 */
13

14
namespace Daycry\Auth\Authorization;
15

16
use CodeIgniter\Exceptions\RuntimeException;
17

18
/**
19
 * Thrown by {@see Gate::authorize()} when an authorization check fails.
20
 *
21
 * Carries an optional explanation message (from a {@see PolicyResponse})
22
 * so callers can decide whether to surface it to the user.
23
 */
24
class AuthorizationException extends RuntimeException
25
{
26
    public function __construct(
3✔
27
        string $message = 'This action is unauthorized.',
28
        private readonly ?PolicyResponse $response = null,
29
    ) {
30
        parent::__construct($message);
3✔
31
    }
32

NEW
33
    public function response(): ?PolicyResponse
×
34
    {
NEW
35
        return $this->response;
×
36
    }
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc