mirror of
https://github.com/danog/amp.git
synced 2025-01-22 21:31:18 +01:00
23 lines
392 B
PHP
23 lines
392 B
PHP
<?php
|
|
|
|
namespace Amp\Loop\Internal;
|
|
|
|
class Signal extends Watcher
|
|
{
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $signo;
|
|
|
|
/**
|
|
* @param int $signo
|
|
* @param callable $callback
|
|
* @param mixed $data
|
|
*/
|
|
public function __construct($signo, callable $callback, $data = null)
|
|
{
|
|
parent::__construct($callback, $data);
|
|
|
|
$this->signo = (int) $signo;
|
|
}
|
|
} |