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

IlyasDeckers / ody-core / 13532154862

25 Feb 2025 10:24PM UTC coverage: 30.374% (+1.7%) from 28.706%
13532154862

push

github

web-flow
Update php.yml

544 of 1791 relevant lines covered (30.37%)

9.13 hits per line

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

20.0
/src/Exception/HttpException.php
1
<?php
2
declare(strict_types=1);
3

4
namespace Ody\Core\Exception;
5

6
use Psr\Http\Message\ServerRequestInterface;
7
use RuntimeException;
8
use Throwable;
9

10
/**
11
 * @api
12
 * @method int getCode()
13
 */
14
class HttpException extends RuntimeException
15
{
16
    protected ServerRequestInterface $request;
17

18
    protected string $title = '';
19

20
    protected string $description = '';
21

22
    public function __construct(
2✔
23
        ServerRequestInterface $request,
24
        string $message = '',
25
        int $code = 0,
26
        ?Throwable $previous = null
27
    ) {
28
        parent::__construct($message, $code, $previous);
2✔
29
        $this->request = $request;
2✔
30
    }
31

32
    public function getRequest(): ServerRequestInterface
×
33
    {
34
        return $this->request;
×
35
    }
36

37
    public function getTitle(): string
×
38
    {
39
        return $this->title;
×
40
    }
41

42
    public function setTitle(string $title): self
×
43
    {
44
        $this->title = $title;
×
45
        return $this;
×
46
    }
47

48
    public function getDescription(): string
×
49
    {
50
        return $this->description;
×
51
    }
52

53
    public function setDescription(string $description): self
×
54
    {
55
        $this->description = $description;
×
56
        return $this;
×
57
    }
58
}
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