1
0
mirror of https://github.com/danog/amp.git synced 2024-12-03 09:57:51 +01:00
amp/lib/Internal/Watcher.php

40 lines
589 B
PHP
Raw Normal View History

2016-05-19 18:12:35 +02:00
<?php
namespace Amp\Loop\Internal;
2016-05-26 06:09:53 +02:00
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;
2016-05-26 06:09:53 +02:00
/**
* @var int
*/
public $type;
2016-05-19 18:12:35 +02:00
/**
* @var string
*/
public $id;
/**
* @var callable
*/
public $callback;
/**
* @var mixed
*/
public $data;
/**
2016-05-26 06:09:53 +02:00
* @var mixed
2016-05-19 18:12:35 +02:00
*/
2016-05-26 06:09:53 +02:00
public $value;
2016-05-19 18:12:35 +02:00
}