PluginProbe
seQura / 3.2.0
seQura v3.2.0
4.3.4 4.3.3 4.3.2 4.3.1 trunk 2.0.0 2.0.10 2.0.11 2.0.12 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.2 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 4.0.0 All 30 releases
sequra / src / Services / Regex / interface-regex.php

interface-regex.php in seQura 3.2.0, at src/Services/Regex/interface-regex.php

26 lines 539 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * RegEx service interface
4 *
5 * @package SeQura/WC
6 * @subpackage SeQura/WC/Services
7 */
8
9 namespace SeQura\WC\Services\Regex;
10
11 /**
12 * Define methods to get regular expressions to validate data
13 */
14 interface Interface_Regex {
15
16 /**
17 * Get regular expression to validate an IPv4 or IPv6 address
18 */
19 public function ip( bool $include_slashes = true ): string;
20
21 /**
22 * Get regular expression to validate a date or duration following ISO 8601
23 */
24 public function date_or_duration( bool $include_slashes = true ): string;
25 }
26