1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 17:37:50 +01:00

Merge pull request #20 from async-interop/AndrewCarterUK-php5-patch

Removed scalar type hints
This commit is contained in:
Andrew Carter 2016-04-15 11:51:56 +01:00
commit d781ac94d6

View File

@ -35,7 +35,7 @@ interface EventLoopDriver
*
* @return string An identifier that can be used to cancel, enable or disable the event.
*/
public function delay(callable $callback, float $time);
public function delay(callable $callback, $time);
/**
* Repeatedly execute a callback. The interval between executions is approximate and accuracy is not guaranteed.
@ -45,7 +45,7 @@ interface EventLoopDriver
*
* @return string An identifier that can be used to cancel, enable or disable the event.
*/
public function repeat(callable $callback, float $interval);
public function repeat(callable $callback, $interval);
/**
* Execute a callback when a stream resource becomes readable.
@ -75,7 +75,7 @@ interface EventLoopDriver
*
* @return string An identifier that can be used to cancel, enable or disable the event.
*/
public function onSignal(int $signo, callable $callback);
public function onSignal($signo, callable $callback);
/**
* Execute a callback when an error occurs.
@ -93,7 +93,7 @@ interface EventLoopDriver
*
* @return void
*/
public function enable(string $eventIdentifier);
public function enable($eventIdentifier);
/**
* Disable an event.
@ -102,7 +102,7 @@ interface EventLoopDriver
*
* @return void
*/
public function disable(string $eventIdentifier);
public function disable($eventIdentifier);
/**
* Cancel an event.
@ -111,7 +111,7 @@ interface EventLoopDriver
*
* @return void
*/
public function cancel(string $eventIdentifier);
public function cancel($eventIdentifier);
/**
* Reference an event.
@ -122,7 +122,7 @@ interface EventLoopDriver
*
* @return void
*/
public function reference(string $eventIdentifier);
public function reference($eventIdentifier);
/**
* Unreference an event.
@ -134,5 +134,5 @@ interface EventLoopDriver
*
* @return void
*/
public function unreference(string $eventIdentifier);
public function unreference($eventIdentifier);
}