Completed
Push — 4.3 ( 41dc92...731ef0 )
by Maxime
36s queued 17s
created

AbstractRequestAwareStore   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRequest() 0 4 1
1
<?php
2
namespace SilverStripe\Forms\GridField\FormAction;
3
4
use SilverStripe\Control\Controller;
5
use SilverStripe\Control\HTTPRequest;
6
7
abstract class AbstractRequestAwareStore implements StateStore
8
{
9
    /**
10
     * @return HTTPRequest
11
     */
12
    public function getRequest()
13
    {
14
        // Replicating existing functionality from GridField_FormAction
15
        return Controller::curr()->getRequest();
16
    }
17
}
18