getSearchPosition()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
/**
3
 * File containing the {@see Mailcode_Commands_Command_ElseIf_ListBeginsWith} class.
4
 *
5
 * @package Mailcode
6
 * @subpackage Commands
7
 * @see Mailcode_Commands_Command_ElseIf_ListBeginsWith
8
 */
9
10
declare(strict_types=1);
11
12
namespace Mailcode;
13
14
/**
15
 * Mailcode command: opening ELSE IF LIST BEGINS WITH statement.
16
 *
17
 * Checks if a list variable value begins with a search string.
18
 *
19
 * @package Mailcode
20
 * @subpackage Commands
21
 * @author Sebastian Mordziol <[email protected]>
22
 */
23
class Mailcode_Commands_Command_ElseIf_ListBeginsWith extends Mailcode_Commands_Command_ElseIf_ListContains implements Mailcode_Traits_Commands_IfListEndsOrBeginsWithInterface
24
{
25
    use Mailcode_Traits_Commands_IfListEndsOrBeginsWith;
26
27
    public function getSearchPosition(): string
28
    {
29
        return self::SEARCH_POSITION_BEGINNING;
30
    }
31
}
32