Completed
Push — master ( 5e7012...84911a )
by Vladimir
02:39
created

FondBot   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getChannel() 0 3 1
A initialize() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot;
6
7
use FondBot\Channels\Channel;
8
9
class FondBot
10
{
11
    public const VERSION = '4.0.0';
12
13
    /** @var Channel|null */
14
    private $channel;
15
16
    /**
17
     * Initialize kernel.
18
     *
19
     * @param Channel $channel
20
     */
21
    public function initialize(Channel $channel): void
22
    {
23
        $this->channel = $channel;
24
    }
25
26
    /**
27
     * Get current channel.
28
     *
29
     * @return Channel|null
30
     */
31
    public function getChannel(): ?Channel
32
    {
33
        return $this->channel;
34
    }
35
}
36