Total Complexity | 7 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 92.86% |
Changes | 0 |
1 | <?php |
||
10 | class Hyperlink |
||
11 | { |
||
12 | /** |
||
13 | * HYPERLINK. |
||
14 | * |
||
15 | * Excel Function: |
||
16 | * =HYPERLINK(linkURL, [displayName]) |
||
17 | * |
||
18 | * @param mixed $linkURL Expect string. Value to check, is also the value returned when no error |
||
19 | * @param mixed $displayName Expect string. Value to return when testValue is an error condition |
||
20 | * @param ?Cell $cell The cell to set the hyperlink in |
||
21 | * |
||
22 | * @return string The value of $displayName (or $linkURL if $displayName was blank) |
||
23 | */ |
||
24 | 15 | public static function set(mixed $linkURL = '', mixed $displayName = null, ?Cell $cell = null): string |
|
48 |