Passed
Pull Request — 4 (#9744)
by Garion
07:22
created

HasMethod::example()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace SilverStripe\Core\Tests\ClassInfoTest;
4
5
use SilverStripe\Core\CustomMethods;
6
use SilverStripe\Dev\TestOnly;
7
8
/**
9
 * Example of class with hasMethod() implementation
10
 */
11
class HasMethod implements TestOnly
12
{
13
    use CustomMethods;
14
15
    public function example()
16
    {
17
        return true;
18
    }
19
}
20