Skip to content

Commit a5a0f9e

Browse files
committed
Adjust event docs to use fake docblocks
1 parent 102b1da commit a5a0f9e

File tree

8 files changed

+24
-8
lines changed

8 files changed

+24
-8
lines changed

src/React/Http/RequestHeaderParser.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
use Evenement\EventEmitter;
66
use Guzzle\Parser\Message\MessageParser;
77

8-
// Events: headers, error
8+
/**
9+
* @event headers
10+
* @event error
11+
*/
912
class RequestHeaderParser extends EventEmitter
1013
{
1114
private $buffer = '';

src/React/Http/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use React\Socket\ServerInterface as SocketServerInterface;
77
use React\Socket\ConnectionInterface;
88

9-
// Events: request
9+
/** @event request */
1010
class Server extends EventEmitter implements ServerInterface
1111
{
1212
private $io;

src/React/HttpClient/Request.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
use React\Stream\Stream;
1414
use React\Stream\WritableStreamInterface;
1515

16-
// Events: headers-written, response
16+
/**
17+
* @event headers-written
18+
* @event response
19+
*/
1720
class Request extends EventEmitter implements WritableStreamInterface
1821
{
1922
const STATE_INIT = 0;

src/React/Socket/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Evenement\EventEmitter;
66
use React\EventLoop\LoopInterface;
77

8-
// Events: connection
8+
/** @event connection */
99
class Server extends EventEmitter implements ServerInterface
1010
{
1111
public $master;

src/React/Socket/ServerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Evenement\EventEmitterInterface;
66

7-
// Events: connection
7+
/** @event connection */
88
interface ServerInterface extends EventEmitterInterface
99
{
1010
public function listen($port, $host = '127.0.0.1');

src/React/Stream/Buffer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use React\EventLoop\LoopInterface;
77
use React\Stream\WritableStreamInterface;
88

9-
// Events: full-drain
9+
/** @event full-drain */
1010
class Buffer extends EventEmitter implements WritableStreamInterface
1111
{
1212
public $stream;

src/React/Stream/ReadableStreamInterface.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44

55
use Evenement\EventEmitterInterface;
66

7-
// Events: data, end, error, close
7+
/**
8+
* @event data
9+
* @event end
10+
* @event error
11+
* @event close
12+
*/
813
interface ReadableStreamInterface extends StreamInterface
914
{
1015
public function isReadable();

src/React/Stream/WritableStreamInterface.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44

55
use Evenement\EventEmitterInterface;
66

7-
// Events: drain, error, close, pipe
7+
/**
8+
* @event drain
9+
* @event error
10+
* @event close
11+
* @event pipe
12+
*/
813
interface WritableStreamInterface extends StreamInterface
914
{
1015
public function isWritable();

0 commit comments

Comments
 (0)