GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 58404d...00b39a )
by Bram
10:57
created

Options::setDisableAjaxFallback()   A

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
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * Options for the jquery validate renderer
4
 *
5
 * @category   StrokerForm
6
 * @package    StrokerForm\Renderer
7
 * @subpackage JqueryValidate
8
 * @copyright  2012 Bram Gerritsen
9
 * @version    SVN: $Id$
10
 */
11
12
namespace StrokerForm\Renderer\JqueryValidate;
13
14
class Options extends \StrokerForm\Renderer\Options
15
{
16
    /**
17
     * @var array
18
     */
19
    private $validateOptions = array();
20
21
    /**
22
     * @var bool
23
     */
24
    private $useTwitterBootstrap = true;
25
26
    /**
27
     * @var string
28
     */
29
    private $initializeTrigger = '$(document).ready(function(){%s});';
30
31
    /**
32
     * @var array
33
     */
34
    private $customValidationRules = array();
35
36
    /**
37
     * @return array
38
     */
39
    public function getValidateOptions()
40
    {
41
        return $this->validateOptions;
42
    }
43
44
    /**
45
     * Overwrite default options for the jquery.validate plugin
46
     * See: http://docs.jquery.com/Plugins/Validation#Options_for_the_validate.28.29_method
47
     *
48
     * @param array $validateOptions
49
     */
50
    public function setValidateOptions($validateOptions)
51
    {
52
        $this->validateOptions = $validateOptions;
53
    }
54
55
    /**
56
     * @param string $option
57
     */
58
    public function addValidateOption($option)
59
    {
60
        $this->validateOptions[] = $option;
61
    }
62
63
    /**
64
     * @return bool
65
     */
66
    public function isUseTwitterBootstrap()
67
    {
68
        return $this->useTwitterBootstrap;
69
    }
70
71
    /**
72
     * @param bool $useTwitterBootstrap
73
     */
74
    public function setUseTwitterBootstrap($useTwitterBootstrap)
75
    {
76
        $this->useTwitterBootstrap = $useTwitterBootstrap;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function getInitializeTrigger()
83
    {
84
        return $this->initializeTrigger;
85
    }
86
87
    /**
88
     * @param string $initializeTrigger
89
     * @return Options
90
     */
91
    public function setInitializeTrigger($initializeTrigger)
92
    {
93
        $this->initializeTrigger = $initializeTrigger;
94
        return $this;
95
    }
96
97
    /**
98
     * @return array
99
     */
100
    public function getCustomValidationRules()
101
    {
102
        return $this->customValidationRules;
103
    }
104
105
    /**
106
     * @param array $customValidationRules
107
     * @return Options $this
108
     */
109
    public function setCustomValidationRules(array $customValidationRules)
110
    {
111
        $this->customValidationRules = $customValidationRules;
112
113
        return $this;
114
    }
115
}
116