PluginProbe ʕ •ᴥ•ʔ
Search Regex / trunk
Search Regex vtrunk
trunk 1.4.12 1.4.13 1.4.14 1.4.15 1.4.16 2.0 2.0.1 2.1 2.2 2.2.1 2.3 2.3.1 2.3.2 2.3.3 2.4 2.4.1 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.1 3.1.1 3.1.2 3.2 3.3 3.3.0 3.3.1 3.4 3.4.1 3.4.2
search-regex / includes / context / type / class-empty-type.php
search-regex / includes / context / type Last commit date
class-add.php 5 months ago class-delete.php 5 months ago class-empty-type.php 5 months ago class-matched.php 5 months ago class-pair.php 5 months ago class-replace.php 5 months ago class-text.php 5 months ago class-value.php 5 months ago
class-empty-type.php
26 lines
1 <?php
2
3 namespace SearchRegex\Context\Type;
4
5 use SearchRegex\Context;
6
7 /**
8 * Context for an empty value (i.e. null)
9 */
10 class Empty_Type extends Context\Context {
11 const TYPE_EMPTY = 'empty';
12
13 public function get_type() {
14 return self::TYPE_EMPTY;
15 }
16
17 /**
18 * Get the value
19 *
20 * @return string
21 */
22 public function get_value() {
23 return '';
24 }
25 }
26