1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 21:31:18 +01:00
amp/lib/Internal/Signal.php
Aaron Piotrowski deb45e2cc2 Initial commit
2016-05-19 11:13:07 -05:00

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;
}
}