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

Pool   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

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