Passed
Push — master ( 1515ff...7c0b30 )
by Sebastian
04:21
created

Mailcode_Traits_Commands_IfEndsOrBeginsWith   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getValidations() 0 6 1
1
<?php
2
/**
3
 * File containing the {@see Mailcode_Commands_Command_If_Contains} class.
4
 *
5
 * @package Mailcode
6
 * @subpackage Commands
7
 * @see Mailcode_Commands_Command_If_Contains
8
 */
9
10
declare(strict_types=1);
11
12
namespace Mailcode;
13
14
/**
15
 * Mailcode command: opening IF statement.
16
 *
17
 * @package Mailcode
18
 * @subpackage Commands
19
 * @author Sebastian Mordziol <[email protected]>
20
 *
21
 * @property Mailcode_Parser_Statement $params
22
 * @property \AppUtils\OperationResult $validationResult
23
 * @property Mailcode_Parser_Statement_Validator $validator
24
 */
25
trait Mailcode_Traits_Commands_IfEndsOrBeginsWith
26
{
27
    use Mailcode_Traits_Commands_Validation_Variable;
28
    use Mailcode_Traits_Commands_Validation_CaseSensitive;
29
    use Mailcode_Traits_Commands_Validation_SearchTerm;
30
    
31
    protected function getValidations() : array
32
    {
33
        return array(
34
            'variable',
35
            'search_term',
36
            'case_sensitive'
37
        );
38
    }
39
}
40