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

HasGatewayRecordTrait::populateFromGateway()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 1
b 1
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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
}