Completed
Push — develop ( 2d4f17...d5975b )
by Nate
05:25
created

UpdateConnection   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 15
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A populate() 0 5 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://flipboxfactory.com/software/hubspot/license
6
 * @link       https://www.flipboxfactory.com/software/hubspot/
7
 */
8
9
namespace flipbox\craft\hubspot\actions\connections;
10
11
use flipbox\craft\hubspot\records\Connection;
12
use flipbox\craft\integration\actions\connections\UpdateConnection as UpdateIntegrationConnection;
13
use yii\db\ActiveRecord;
14
15
/**
16
 * @author Flipbox Factory <[email protected]>
17
 * @since 1.0.0
18
 */
19
class UpdateConnection extends UpdateIntegrationConnection
20
{
21
    use LookupConnectionTrait,
22
        PopulateConnectionTrait;
23
24
    /**
25
     * @param Connection $record
26
     * @inheritdoc
27
     */
28
    protected function populate(ActiveRecord $record): ActiveRecord
29
    {
30
        parent::populate($record);
31
        return $this->populateSettings($record);
32
    }
33
}
34