Overview

Namespaces

  • Hook

Classes

  • Client
  • Collection
  • Keys
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: namespace Hook;
 3: 
 4: class Keys {
 5:     protected $client;
 6: 
 7:     function __construct($client) {
 8:         $this->client = $client;
 9:     }
10: 
11:     public function get($key) {
12:         return $this->client->get('key/' . $key);
13:     }
14: 
15:     public function set($key, $value) {
16:         return $this->client->post('key/' . $key, array('value' => $value));
17:     }
18: 
19: }
20: 
API documentation generated by ApiGen 2.8.0