Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
PageSelector
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\PagedMedia;
6
7/**
8 * CSS Paged Media 3 §3.1 — `@page` pseudo-class selectors.
9 *
10 * A `@page :first` rule applies to the first page of a named-page
11 * group. `@page :left` / `@page :right` alternate for two-sided
12 * print. `@page :blank` matches pages forced empty by a `break-
13 * before: page` directive.
14 *
15 * CSS Paged Media 3 §3.1.5 — `:nth(an+b)` for arbitrary page indices.
16 *
17 * Phase 4G.1 (extraction) maps the at-rule prelude text (`:first`,
18 * `:left`, `:nth(2n+1)`, …) into the enum cases. `:nth(an+b)` is
19 * the only one that takes parameters and is represented by a
20 * separate value type (`NthSelector`) rather than an enum case.
21 */
22enum PageSelector: string
23{
24    case First = 'first';
25    case Left = 'left';
26    case Right = 'right';
27    case Blank = 'blank';
28}