| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 24 | 2 | public function connect() |
|
| 25 | { |
||
| 26 | 2 | $this->disconnect(); |
|
| 27 | 2 | $host = $this->getConfigurationValue('host', '127.0.0.1'); |
|
| 28 | 2 | $port = $this->getConfigurationValue('port', Pheanstalk::DEFAULT_PORT); |
|
| 29 | 2 | $connectionTimeout = $this->getConfigurationValue('connectionTimeout'); |
|
| 30 | 2 | $connectPersistent = $this->getConfigurationValue('connectPersistent', false); |
|
| 31 | 2 | $this->instance = new Pheanstalk($host, $port, $connectionTimeout, $connectPersistent); |
|
| 32 | |||
| 33 | 2 | return $this; |
|
| 34 | } |
||
| 35 | |||
| 48 |