Completed
Push — master ( 644ae6...bba86b )
by Daniel
10:38
created

disallowedformaction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace SilverStripe\Control\Tests\RequestHandlingTest;
5
6
use SilverStripe\Forms\FormRequestHandler;
7
8
/**
9
 * Request handler for
10
 * @see FormWithAllowedActions
11
 */
12
class FormWithAllowedActionsHandler extends FormRequestHandler
13
{
14
    private static $allowed_actions = array(
15
        'allowedformaction' => 1,
16
    );
17
18
    public function allowedformaction()
19
    {
20
        return 'allowedformaction';
21
    }
22
23
    public function disallowedformaction()
24
    {
25
        return 'disallowedformaction';
26
    }
27
}
28