Pool::getConfigDefaults()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 7
rs 10
c 0
b 0
f 0
nc 1
nop 0
1
<?php
2
namespace PHPDaemon\Clients\IRC;
3
4
/**
5
 * @package    NetworkClients
6
 * @subpackage IRCClient
7
 * @author     Vasily Zorin <[email protected]>
8
 */
9
class Pool extends \PHPDaemon\Network\Client
10
{
11
12
    /**
13
     * @var Pool
14
     */
15
    public $identd;
16
17
    /**
18
     * @var bool
19
     */
20
    public $protologging = false;
21
22
    /**
23
     * @TODO DESCR
24
     */
25
    public function onReady()
26
    {
27
        $this->identd = \PHPDaemon\Servers\Ident\Pool::getInstance();
0 ignored issues
show
Documentation Bug introduced by
It seems like \PHPDaemon\Servers\Ident\Pool::getInstance() of type object<PHPDaemon\Network\this> is incompatible with the declared type object<PHPDaemon\Clients\IRC\Pool> of property $identd.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
28
        parent::onReady();
29
    }
30
31
    /**
32
     * Setting default config options
33
     * Overriden from NetworkClient::getConfigDefaults
34
     * @return array|bool
35
     */
36
    protected function getConfigDefaults()
37
    {
38
        return [
39
            /* [integer] Port */
40
            'port' => 6667,
41
        ];
42
    }
43
}
44