@@ -52,6 +52,9 @@ |
||
52 | 52 | */ |
53 | 53 | protected $status; |
54 | 54 | |
55 | + /** |
|
56 | + * @param \Closure $callback |
|
57 | + */ |
|
55 | 58 | public function __construct($callback) |
56 | 59 | { |
57 | 60 | if (!static::isSupported()) { |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | /** |
13 | 13 | * Registers a callback for some signals |
14 | 14 | * @param int|array $signals a signal or an array of signals |
15 | - * @param callable|int $callback a callback |
|
15 | + * @param \Closure $callback a callback |
|
16 | 16 | * @return SignalHandler; |
17 | 17 | */ |
18 | 18 | public function register($signals, $callback) |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | /** |
43 | 43 | * Gets the handler for a signal |
44 | - * @param $signal |
|
44 | + * @param integer $signal |
|
45 | 45 | * @return int|string |
46 | 46 | */ |
47 | 47 | public function getHandler($signal) |
@@ -47,6 +47,9 @@ |
||
47 | 47 | */ |
48 | 48 | protected $stopSignal; |
49 | 49 | |
50 | + /** |
|
51 | + * @param integer $status |
|
52 | + */ |
|
50 | 53 | public function __construct($status) |
51 | 54 | { |
52 | 55 | $this->status = $status; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Gets a value from the shared memory |
37 | - * @param $key |
|
37 | + * @param string $key |
|
38 | 38 | * @return mixed |
39 | 39 | */ |
40 | 40 | public function get($key) |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | /** |
46 | 46 | * Persists data in the shared memory |
47 | 47 | * @param string $key |
48 | - * @param mixed $value |
|
48 | + * @param string $value |
|
49 | 49 | * @return bool |
50 | 50 | */ |
51 | 51 | public function set($key, $value) |
@@ -84,6 +84,9 @@ |
||
84 | 84 | $fifo->close(); |
85 | 85 | } |
86 | 86 | |
87 | + /** |
|
88 | + * @param string $command |
|
89 | + */ |
|
87 | 90 | protected function syncExecute($command) |
88 | 91 | { |
89 | 92 | $this->lastPd = Utils::asyncExecute($command); |
@@ -59,6 +59,9 @@ |
||
59 | 59 | $this->assertFalse($fifo->isBlocking()); |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $command |
|
64 | + */ |
|
62 | 65 | protected function syncExecute($command) |
63 | 66 | { |
64 | 67 | $this->lastPd = Utils::asyncExecute($command); |
@@ -68,6 +68,9 @@ |
||
68 | 68 | $this->assertFalse($fifo->isBlocking()); |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @param string $command |
|
73 | + */ |
|
71 | 74 | protected function syncExecute($command) |
72 | 75 | { |
73 | 76 | $this->lastPd = Utils::asyncExecute($command); |