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

michalsn / codeigniter-nested-model / 12625514454

06 Jan 2025 02:40AM UTC coverage: 95.904%. First build
12625514454

Pull #5

github

web-flow
Merge 867295d0c into b345a797a
Pull Request #5: Bump codeigniter4/framework from 4.5.6 to 4.5.7

398 of 415 relevant lines covered (95.9%)

11.47 hits per line

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

100.0
/src/Exceptions/NestedModelException.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Michalsn\CodeIgniterNestedModel\Exceptions;
6

7
use RuntimeException;
8

9
final class NestedModelException extends RuntimeException
10
{
11
    public static function forMethodNotSupported(string $name): static
12
    {
13
        return new self(lang('NestedModel.methodNotSupported', [$name]));
1✔
14
    }
15

16
    public static function forParentRelationNotDeclared(string $name): static
17
    {
18
        return new self(lang('NestedModel.parentRelationNotDeclared', [$name]));
1✔
19
    }
20

21
    public static function forRelationNotDefined(string $name): static
22
    {
23
        return new self(lang('NestedModel.relationNotDefined', [$name]));
1✔
24
    }
25

26
    public static function forMissingReturnType(string $name): static
27
    {
28
        return new self(lang('NestedModel.missingReturnType', [$name]));
1✔
29
    }
30

31
    public static function forIncorrectReturnType(string $name): static
32
    {
33
        return new self(lang('NestedModel.incorrectReturnType', [$name]));
1✔
34
    }
35

36
    public static function forRelationDoesNotSupportWrite(): static
37
    {
38
        return new self(lang('NestedModel.relationDoesNotSupportWrite'));
1✔
39
    }
40
}
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

© 2025 Coveralls, Inc