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

ICanBoogie / Routing / 4086305047

pending completion
4086305047

push

github

Olivier Laviale
Tidy

2 of 2 new or added lines in 1 file covered. (100.0%)

398 of 455 relevant lines covered (87.47%)

6.35 hits per line

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

0.0
/lib/Redirection.php
1
<?php
2

3
namespace ICanBoogie\Routing;
4

5
use ICanBoogie\HTTP\RequestMethod;
6

7
final class Redirection
8
{
9
    public readonly Pattern $pattern;
10

11
    /**
12
     * @param string $pattern Pattern of the route.
13
     * @param string $location A target location.
14
     * @param RequestMethod|RequestMethod[] $methods Request method(s) accepted by the route.
15
     */
16
    public function __construct(
17
        string $pattern,
18
        public readonly string $location,
19
        public readonly RequestMethod|array $methods = RequestMethod::METHOD_ANY,
×
20
    ) {
21
        $this->pattern = Pattern::from($pattern);
×
22
    }
23
}
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