| @@ -8,6 +8,9 @@ discard block | ||
| 8 | 8 |  { | 
| 9 | 9 | use Toolkit; | 
| 10 | 10 | |
| 11 | + /** | |
| 12 | + * @param string $name | |
| 13 | + */ | |
| 11 | 14 | protected function require($name) | 
| 12 | 15 |      { | 
| 13 | 16 |          if (!$this->$name) { | 
| @@ -15,6 +18,9 @@ discard block | ||
| 15 | 18 | } | 
| 16 | 19 | } | 
| 17 | 20 | |
| 21 | + /** | |
| 22 | + * @param string $message | |
| 23 | + */ | |
| 18 | 24 | protected function confirm($message) | 
| 19 | 25 |      { | 
| 20 | 26 | $hash = md5($message); | 
| @@ -35,6 +35,9 @@ discard block | ||
| 35 | 35 | } | 
| 36 | 36 | } | 
| 37 | 37 | |
| 38 | + /** | |
| 39 | + * @param string $key | |
| 40 | + */ | |
| 38 | 41 | public function get($key) | 
| 39 | 42 |      { | 
| 40 | 43 |          if ($this->exists($key)) { | 
| @@ -42,6 +45,9 @@ discard block | ||
| 42 | 45 | } | 
| 43 | 46 | } | 
| 44 | 47 | |
| 48 | + /** | |
| 49 | + * @param string $key | |
| 50 | + */ | |
| 45 | 51 | public function set($key, $value) | 
| 46 | 52 |      { | 
| 47 | 53 | $filename = $this->path . '/' . $key; | 
| @@ -55,6 +61,10 @@ discard block | ||
| 55 | 61 | $this->cache[$key] = $data; | 
| 56 | 62 | } | 
| 57 | 63 | |
| 64 | + /** | |
| 65 | + * @param string $key | |
| 66 | + * @param \Closure $callback | |
| 67 | + */ | |
| 58 | 68 | public function wrap($key, $callback) | 
| 59 | 69 |      { | 
| 60 | 70 |          if (!is_string($key)) { |