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

FormWithAllowedActionsHandler   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A allowedformaction() 0 4 1
A disallowedformaction() 0 4 1
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