Passed
Push — master ( 133129...87687b )
by Gabriel
12:43
created

HasGatewayRecordTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A populateFromGateway() 0 3 1
1
<?php
2
3
namespace ByTIC\Payments\Models\AbstractModels\HasGateway;
4
5
use ByTIC\Payments\Gateways\Providers\AbstractGateway\Traits\GatewayTrait as AbstractGateway;
6
7
/**
8
 * Trait HasGatewayRecordTrait
9
 * @package ByTIC\Payments\Models\AbstractModels\HasGateway
10
 *
11
 * @property string $gateway
12
 */
13
trait HasGatewayRecordTrait
14
{
15
16
17
    /**
18
     * @param AbstractGateway $gateway
19
     */
20
    public function populateFromGateway($gateway)
21
    {
22
        $this->gateway = $gateway->getName();
23
    }
24
}