Completed
Pull Request — master (#244)
by Vasily
07:51 queued 03:57
created

Pool::getConfigDefaults()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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