| Total Complexity | 7 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Str |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Determine if a given string starts with a given substring. |
||
| 15 | * |
||
| 16 | * @param string $haystack |
||
| 17 | * @param string|array $needles |
||
| 18 | * @return bool |
||
| 19 | */ |
||
| 20 | public static function startsWith($haystack, $needles) |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Determine if a given string ends with a given substring. |
||
| 32 | * |
||
| 33 | * @param string $haystack |
||
| 34 | * @param string|array $needles |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | public static function endsWith($haystack, $needles) |
||
| 47 |