| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace AdammBalogh\KeyValueStore\Adapter; |
||
| 28 | public function __construct($client, ShmProxy $shmProxy = null) |
||
| 29 | { |
||
| 30 | if (!is_resource($client)) { |
||
| 31 | throw new \InvalidArgumentException(); |
||
| 32 | } |
||
| 33 | |||
| 34 | if (is_null($shmProxy)) { |
||
| 35 | $this->shmProxy = new ShmProxy(); |
||
| 36 | } else { |
||
| 37 | $this->shmProxy = $shmProxy; |
||
| 38 | } |
||
| 39 | |||
| 40 | $this->client = $client; |
||
| 41 | } |
||
| 42 | |||
| 51 |