Completed
Push — GearmanClient ( 413f25 )
by Vasily
04:10
created

Pool   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
c 1
b 1
f 0
lcom 0
cbo 1
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigDefaults() 0 7 1
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
}