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

FondBot::initialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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