Failed Conditions
Push — feature/customize-username-tes... ( 2b9ec8 )
by Kiyotaka
04:16
created

CustomerTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLoginId() 0 4 1
A setLoginId() 0 4 1
1
<?php
2
/*
3
 * This file is part of EC-CUBE
4
 *
5
 * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
6
 *
7
 * http://www.ec-cube.co.jp/
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
namespace Customize\Entity;
13
14
use Doctrine\ORM\Mapping as ORM;
15
use Eccube\Annotation\EntityExtension;
16
17
/**
18
 * @EntityExtension("Eccube\Entity\Customer")
19
 */
20
trait CustomerTrait
21
{
22
    private static $usernameField = 'login_id';
23
24
    /**
25
     * @ORM\Column(name="login_id", type="string", nullable=false, unique=true)
26
     * @var string
27
     */
28
    private $login_id;
29
30
    /**
31
     * @return mixed
32
     */
33
    public function getLoginId()
34
    {
35
        return $this->login_id;
36
    }
37
38
    /**
39
     * @param mixed $login_id
40
     */
41
    public function setLoginId($login_id): void
42
    {
43
        $this->login_id = $login_id;
44
    }
45
}
46