1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 21:31:18 +01:00
amp/lib/Internal/Watcher.php
Aaron Piotrowski f940934a0b Update for latest standard changes
Plus some minor tweaks and more docs.
2016-06-07 00:18:59 -05:00

54 lines
888 B
PHP

<?php
namespace Amp\Loop\Internal;
class Watcher {
const DEFER = 0b00000001;
const TIMER = 0b00000110;
const DELAY = 0b00000010;
const REPEAT = 0b00000100;
const IO = 0b00011000;
const READABLE = 0b00001000;
const WRITABLE = 0b00010000;
const SIGNAL = 0b00100000;
/**
* @var int
*/
public $type;
/**
* @var bool
*/
public $enabled = true;
/**
* @var bool
*/
public $referenced = true;
/**
* @var string
*/
public $id;
/**
* @var callable
*/
public $callback;
/**
* Data provided to the watcher callback.
*
* @var mixed
*/
public $data;
/**
* Watcher-dependent value storage. Stream for IO watchers, signo for signal watchers, interval for timers.
*
* @var mixed
*/
public $value;
}