Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
BidiRun
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\Text;
6
7/**
8 * A contiguous span of characters at one resolved bidi embedding level.
9 *
10 * Offsets are byte offsets into the original UTF-8 string. Level 0 is LTR,
11 * level 1 is RTL, higher levels indicate nested embedding. Layout consumers
12 * reorder runs into visual order using the standard UAX #9 ยง3.4 algorithm
13 * (`reverse` consecutive runs at each level from the highest down).
14 */
15final readonly class BidiRun
16{
17    public function __construct(
18        public int $offset,
19        public int $length,
20        public int $level,
21    ) {}
22}