Completed
Push — master ( 78b4bc...aee67f )
by Lorenzo
01:34
created

AbstractNetwork   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Padosoft\AffiliateNetwork;
4
5
/**
6
 * Class AbstractNetwork
7
 * @package Padosoft\AffiliateNetwork
8
 */
9
abstract class AbstractNetwork
10
{
11
    /**
12
     * username
13
     * @var string
14
     */
15
    protected $username = '';
16
17
    /**
18
     * password
19
     * @var string
20
     */
21
    protected $password = '';
22
23
    /**
24
     * AbstractNetwork constructor.
25
     * @param string $username
26
     * @param string $password
27
     */
28
    public function __construct(string $username, string $password)
29
    {
30
        $this->username = $username;
31
        $this->password = $password;
32
    }
33
34
}
35