Completed
Push — master ( 479a33...82b45c )
by Leo
01:42
created

BaseBot   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getAuth() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace leocata\m1Bot\Bot;
4
5
use leocata\M1\Authorization;
6
7
class BaseBot
8
{
9
    public $pass = '';
10
    public $username = '';
11
    private $auth;
12
13
    public function __construct()
14
    {
15
        $this->auth = new Authorization($this->username, $this->pass);
16
    }
17
18
    public function getAuth()
19
    {
20
        return $this->auth;
21
    }
22
}
23