Completed
Pull Request — master (#226)
by
unknown
03:49
created

Pool   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 2
b 0
f 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
use PHPDaemon\Core\Daemon;
7
8
9
class Pool extends Client {
10
11
    /**
12
     * Setting default config options
13
     * Overriden from NetworkClient::getConfigDefaults
14
     * @return array|bool
15
     */
16
    protected function getConfigDefaults() {
17
        return [
18
            'server'         => 'tcp://127.0.0.1/',
19
            'port'           => 4730,
20
            'maxconnperserv' => 32,
21
        ];
22
    }
23
}