mirror of
https://github.com/danog/amp.git
synced 2024-11-30 04:29:08 +01:00
Make Subscriber not caring about $id type
This commit is contained in:
parent
80265b726e
commit
08d65bcd63
@ -6,21 +6,15 @@ namespace Amp;
|
||||
* Subscriber implementation returned from implementors of \Amp\Observable.
|
||||
*/
|
||||
class Subscriber {
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var callable
|
||||
*/
|
||||
/** @var callable */
|
||||
private $unsubscribe;
|
||||
|
||||
/**
|
||||
* @param string $id
|
||||
* @param mixed $id
|
||||
* @param callable $unsubscribe
|
||||
*/
|
||||
public function __construct(string $id, callable $unsubscribe) {
|
||||
public function __construct($id, callable $unsubscribe) {
|
||||
$this->id = $id;
|
||||
$this->unsubscribe = $unsubscribe;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user