MultiFormTestController::Form()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SilverStripe\MultiForm\Tests\Stubs;
4
5
use SilverStripe\Control\Controller;
6
use SilverStripe\Core\Injector\Injector;
7
use SilverStripe\Dev\TestOnly;
8
9
class MultiFormTestController extends Controller implements TestOnly
10
{
11
    private static $url_segment = 'MultiFormTestController';
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
12
13
    public function Form()
14
    {
15
        return Injector::inst()->get(MultiFormTestForm::class, false, [$this, 'Form'])
16
            ->setHTMLID(MultiFormTestForm::class);
17
    }
18
}
19