ForceFalse::validate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 3
1
<?php
2
/**
3
 * Jaeger
4
 *
5
 * @copyright	Copyright (c) 2015-2016, mithra62
6
 * @link		http://jaeger-app.com
7
 * @version		1.0
8
 * @filesource 	./Validate/Rules/ForceFalse.php
9
 */
10
namespace JaegerApp\Validate\Rules;
11
12
use JaegerApp\Validate\AbstractRule;
13
14
if (! class_exists('\\JaegerApp\\Validate\\Rules\\ForceFalse')) {
15
16
    /**
17
     * Jaeger - Force False Rule
18
     *
19
     * Will always throw a false error
20
     *
21
     * @package Validate\Rules
22
     * @author Eric Lamb <[email protected]>
23
     */
24
    class ForceFalse extends AbstractRule
25
    {
26
27
        /**
28
         * The Rule shortname
29
         * 
30
         * @var unknown
31
         */
32
        protected $name = 'false';
33
34
        /**
35
         * the error template
36
         * 
37
         * @var string
38
         */
39
        protected $error_message = '{field} has an error';
40
41
        /**
42
         * (non-PHPdoc)
43
         * 
44
         * @see \mithra62\Validate\RuleInterface::validate()
45
         * @ignore
46
         *
47
         */
48
        public function validate($field, $input, array $params = array())
49
        {
50
            return false;
51
        }
52
    }
53
}