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

michalsn / codeigniter-nested-model / 12540985868

30 Dec 2024 02:32AM UTC coverage: 95.904%. Remained the same
12540985868

Pull #3

github

web-flow
Merge 70682bd63 into 9b44f9d7f
Pull Request #3: Bump codeigniter4/framework from 4.5.5 to 4.5.6

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