Passed
Pull Request — master (#18)
by Robbie
05:41
created

LDAPFakeMember   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A write() 0 2 1
1
<?php
2
3
namespace SilverStripe\LDAP\Tests\Model;
4
5
use SilverStripe\Dev\TestOnly;
6
use SilverStripe\Security\Member;
7
use SilverStripe\Assets\Image;
8
9
class LDAPFakeMember extends Member implements TestOnly
10
{
11
    /**
12
     * @var array
13
     */
14
    private static $has_one = [
0 ignored issues
show
introduced by
The private property $has_one is not used, and could be removed.
Loading history...
15
        'ProfileImage' => Image::class
16
    ];
17
18
    /**
19
     * We don't actually want/need to change anything
20
     *
21
     * @return int|void
22
     */
23
    public function write($showDebug = false, $forceInsert = false, $forceWrite = false, $writeComponents = false)
24
    {
25
        // Noop
26
    }
27
}
28