Completed
Push — http-client-refactoring ( e04523 )
by Vasily
04:19
created

Pool::getConfigDefaults()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
cc 1
eloc 5
c 2
b 0
f 1
nc 1
nop 0
dl 0
loc 7
rs 9.4285
1
<?php
2
namespace PHPDaemon\Clients\Gearman;
3
4
use PHPDaemon\Network\Client;
5
use PHPDaemon\Config;
6
7
/**
8
 * Class Pool
9
 */
10
class Pool extends Client {
11
12
    /**
13
     * Setting default config options
14
     * Overriden from NetworkClient::getConfigDefaults
15
     * @return array|bool
16
     */
17
    protected function getConfigDefaults() {
18
        return [
19
            'server'         => 'tcp://127.0.0.1/',
20
            'port'           => 4730,
21
            'maxconnperserv' => 32,
22
        ];
23
    }
24
}