Lines
0.00%
0 / 4
Methods
0.00%
0 / 4
Classes
0.00%
0 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| createUnordered | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| createOrderedAscending | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| createOrderedDescending | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| 9 | readonly class OrderingLink | |
| 10 | { | |
| 11 | private function __construct( | |
| 12 | public UriInterface $url, | |
| 13 | public bool $isOrderedAscending, | |
| 14 | public bool $isOrderedDescending, | |
| 15 | ) { | |
| 16 | } | |
| 17 | ||
| 18 | public static function createUnordered(UriInterface $url): self | |
| 19 | { | |
| 20 | return new self($url, false, false); | |
| 21 | } | |
| 22 | ||
| 23 | public static function createOrderedAscending(UriInterface $url): self | |
| 24 | { | |
| 25 | return new self($url, true, false); | |
| 26 | } | |
| 27 | ||
| 28 | public static function createOrderedDescending(UriInterface $url): self | |
| 29 | { | |
| 30 | return new self($url, false, true); | |
| 31 | } | |
| 32 | } |