| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 80% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Locator extends Enum |
||
| 13 | { |
||
| 14 | const BOOK = "book"; |
||
| 15 | const CHAPTER = "chapter"; |
||
| 16 | const COLUMN = "column"; |
||
| 17 | const FIGURE = "figure"; |
||
| 18 | const FOLIO = "folio"; |
||
| 19 | const ISSUE = "issue"; |
||
| 20 | const LINE = "line"; |
||
| 21 | const NOTE = "note"; |
||
| 22 | const OPUS = "opus"; |
||
| 23 | const PAGE = "page"; |
||
| 24 | const PARAGRAPH = "paragraph"; |
||
| 25 | const PART = "part"; |
||
| 26 | const SECTION = "section"; |
||
| 27 | const SUB_VERBO = "sub-verbo"; |
||
| 28 | const VERSE = "verse"; |
||
| 29 | const VOLUME = "volume"; |
||
| 30 | |||
| 31 | private const LABEL_TO_VARIABLE_MAP = [ |
||
| 32 | "chapter" => "chapter-number", |
||
| 33 | ]; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string|Locator $locatorTerm |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | 4 | public static function mapLocatorLabelToRenderVariable($locatorTerm) |
|
| 49 |