@@ -980,7 +980,7 @@ |
||
| 980 | 980 | * Initiates the stat call(updates internal cache). It stats (using lstat) the path specified in the watcher and |
| 981 | 981 | * sets the internal cache to the values found. |
| 982 | 982 | * |
| 983 | - * @return bool TRUE if path exists. Otherwise FALSE. |
|
| 983 | + * @return boolean|null TRUE if path exists. Otherwise FALSE. |
|
| 984 | 984 | */ |
| 985 | 985 | public function stat() {} |
| 986 | 986 | |
@@ -218,7 +218,9 @@ discard block |
||
| 218 | 218 | * |
| 219 | 219 | * @return int Bit mask describing the backend used by libev, see Ev::BACKEND_* flags. |
| 220 | 220 | */ |
| 221 | - final public static function backend() {} |
|
| 221 | + final public static function backend() |
|
| 222 | + { |
|
| 223 | +} |
|
| 222 | 224 | |
| 223 | 225 | /** |
| 224 | 226 | * Returns recursion depth |
@@ -229,14 +231,18 @@ discard block |
||
| 229 | 231 | * |
| 230 | 232 | * @return int Recursion depth of the default loop. |
| 231 | 233 | */ |
| 232 | - final public static function depth() {} |
|
| 234 | + final public static function depth() |
|
| 235 | + { |
|
| 236 | +} |
|
| 233 | 237 | |
| 234 | 238 | /** |
| 235 | 239 | * Returns the set of backends that are embeddable in other event loops. |
| 236 | 240 | * |
| 237 | 241 | * @return int Bit mask which can contain Ev::BACKEND_* flags combined using bitwise OR operator. |
| 238 | 242 | */ |
| 239 | - final public static function embeddableBackends() {} |
|
| 243 | + final public static function embeddableBackends() |
|
| 244 | + { |
|
| 245 | +} |
|
| 240 | 246 | |
| 241 | 247 | /** |
| 242 | 248 | * Feed signal event into Ev |
@@ -249,7 +255,9 @@ discard block |
||
| 249 | 255 | * @param int $signum Signal number. See signal(7) man page for details. You can use constants exported by pcntl |
| 250 | 256 | * extension. |
| 251 | 257 | */ |
| 252 | - final public static function feedSignal($signum) {} |
|
| 258 | + final public static function feedSignal($signum) |
|
| 259 | + { |
|
| 260 | +} |
|
| 253 | 261 | |
| 254 | 262 | /** |
| 255 | 263 | * Feed signal event into the default loop |
@@ -260,7 +268,9 @@ discard block |
||
| 260 | 268 | * @param int $signum Signal number. See signal(7) man page for details. See also constants exported by pcntl |
| 261 | 269 | * extension. |
| 262 | 270 | */ |
| 263 | - final public static function feedSignalEvent($signum) {} |
|
| 271 | + final public static function feedSignalEvent($signum) |
|
| 272 | + { |
|
| 273 | +} |
|
| 264 | 274 | |
| 265 | 275 | /** |
| 266 | 276 | * Return the number of times the default event loop has polled for new events. |
@@ -269,7 +279,9 @@ discard block |
||
| 269 | 279 | * |
| 270 | 280 | * @return int Number of polls of the default event loop. |
| 271 | 281 | */ |
| 272 | - final public static function iteration() {} |
|
| 282 | + final public static function iteration() |
|
| 283 | + { |
|
| 284 | +} |
|
| 273 | 285 | |
| 274 | 286 | /** |
| 275 | 287 | * Returns the time when the last iteration of the default event loop has started. |
@@ -280,7 +292,9 @@ discard block |
||
| 280 | 292 | * @return float Number of seconds(fractional) representing the time when the last iteration of the default event |
| 281 | 293 | * loop has started. |
| 282 | 294 | */ |
| 283 | - final public static function now() {} |
|
| 295 | + final public static function now() |
|
| 296 | + { |
|
| 297 | +} |
|
| 284 | 298 | |
| 285 | 299 | /** |
| 286 | 300 | * Establishes the current time by querying the kernel, updating the time returned by Ev::now in the progress. |
@@ -291,7 +305,9 @@ discard block |
||
| 291 | 305 | * This method is rarely useful, but when some event callback runs for a very long time without entering the event |
| 292 | 306 | * loop, updating libev's consideration of the current time is a good idea. |
| 293 | 307 | */ |
| 294 | - final public static function nowUpdate() {} |
|
| 308 | + final public static function nowUpdate() |
|
| 309 | + { |
|
| 310 | +} |
|
| 295 | 311 | |
| 296 | 312 | /** |
| 297 | 313 | * Returns a bit mask of recommended backends for current platform. |
@@ -304,7 +320,9 @@ discard block |
||
| 304 | 320 | * |
| 305 | 321 | * @return int Bit mask which can contain Ev::BACKEND_* flags combined using bitwise OR operator. |
| 306 | 322 | */ |
| 307 | - final public static function recommendedBackends() {} |
|
| 323 | + final public static function recommendedBackends() |
|
| 324 | + { |
|
| 325 | +} |
|
| 308 | 326 | |
| 309 | 327 | /** |
| 310 | 328 | * Resume previously suspended default event loop. |
@@ -319,7 +337,9 @@ discard block |
||
| 319 | 337 | * |
| 320 | 338 | * Calling suspend / resume has the side effect of updating the event loop time (see Ev::nowUpdate()). |
| 321 | 339 | */ |
| 322 | - final public static function resume() {} |
|
| 340 | + final public static function resume() |
|
| 341 | + { |
|
| 342 | +} |
|
| 323 | 343 | |
| 324 | 344 | /** |
| 325 | 345 | * Begin checking for events and calling callbacks for the default loop. |
@@ -331,28 +351,36 @@ discard block |
||
| 331 | 351 | * |
| 332 | 352 | * @param int $flags One of the Ev::FLAG_* flags |
| 333 | 353 | */ |
| 334 | - final public static function run($flags = self::FLAG_AUTO) {} |
|
| 354 | + final public static function run($flags = self::FLAG_AUTO) |
|
| 355 | + { |
|
| 356 | +} |
|
| 335 | 357 | |
| 336 | 358 | /** |
| 337 | 359 | * Block the process for the given number of seconds. |
| 338 | 360 | * |
| 339 | 361 | * @param float $seconds Fractional number of seconds |
| 340 | 362 | */ |
| 341 | - final public static function sleep($seconds) {} |
|
| 363 | + final public static function sleep($seconds) |
|
| 364 | + { |
|
| 365 | +} |
|
| 342 | 366 | |
| 343 | 367 | /** |
| 344 | 368 | * Stops the default event loop |
| 345 | 369 | * |
| 346 | 370 | * @param int $how One of the Ev::BREAK_* constants |
| 347 | 371 | */ |
| 348 | - final public static function stop($how = self::BREAK_ONE) {} |
|
| 372 | + final public static function stop($how = self::BREAK_ONE) |
|
| 373 | + { |
|
| 374 | +} |
|
| 349 | 375 | |
| 350 | 376 | /** |
| 351 | 377 | * Returns the set of backends supported by current libev configuration. |
| 352 | 378 | * |
| 353 | 379 | * @return int Bit mask which can contain Ev::BACKEND_* flags combined using bitwise OR operator. |
| 354 | 380 | */ |
| 355 | - final public static function supportedBackends() {} |
|
| 381 | + final public static function supportedBackends() |
|
| 382 | + { |
|
| 383 | +} |
|
| 356 | 384 | |
| 357 | 385 | /** |
| 358 | 386 | * Suspend the default event loop. |
@@ -365,7 +393,9 @@ discard block |
||
| 365 | 393 | * After calling Ev::suspend() it is not allowed to call any function on the given loop other than Ev::resume(). |
| 366 | 394 | * Also it is not allowed to call Ev::resume() without a previous call to Ev::suspend(). |
| 367 | 395 | */ |
| 368 | - final public static function suspend() {} |
|
| 396 | + final public static function suspend() |
|
| 397 | + { |
|
| 398 | +} |
|
| 369 | 399 | |
| 370 | 400 | /** |
| 371 | 401 | * Returns the current time in fractional seconds since the epoch. |
@@ -374,7 +404,9 @@ discard block |
||
| 374 | 404 | * |
| 375 | 405 | * @return float The current time in fractional seconds since the epoch. |
| 376 | 406 | */ |
| 377 | - final public static function time() {} |
|
| 407 | + final public static function time() |
|
| 408 | + { |
|
| 409 | +} |
|
| 378 | 410 | |
| 379 | 411 | /** |
| 380 | 412 | * Performs internal consistency checks (for debugging). |
@@ -382,7 +414,9 @@ discard block |
||
| 382 | 414 | * Performs internal consistency checks (for debugging libev) and abort the program if any data structures were |
| 383 | 415 | * found to be corrupted. |
| 384 | 416 | */ |
| 385 | - final public static function verify() {} |
|
| 417 | + final public static function verify() |
|
| 418 | + { |
|
| 419 | +} |
|
| 386 | 420 | } |
| 387 | 421 | |
| 388 | 422 | /** |
@@ -421,7 +455,9 @@ discard block |
||
| 421 | 455 | * @return int In case if the watcher is pending, returns revents bitset as if the watcher callback had been |
| 422 | 456 | * invoked. Otherwise returns 0 . |
| 423 | 457 | */ |
| 424 | - public function clear() {} |
|
| 458 | + public function clear() |
|
| 459 | + { |
|
| 460 | +} |
|
| 425 | 461 | |
| 426 | 462 | /** |
| 427 | 463 | * Feeds the given revents set into the event loop. |
@@ -430,21 +466,27 @@ discard block |
||
| 430 | 466 | * |
| 431 | 467 | * @param int $events Bit mask of watcher received events. |
| 432 | 468 | */ |
| 433 | - public function feed($events) {} |
|
| 469 | + public function feed($events) |
|
| 470 | + { |
|
| 471 | +} |
|
| 434 | 472 | |
| 435 | 473 | /** |
| 436 | 474 | * Returns the loop responsible for the watcher. |
| 437 | 475 | * |
| 438 | 476 | * @return EvLoop Event loop object responsible for the watcher. |
| 439 | 477 | */ |
| 440 | - public function getLoop() {} |
|
| 478 | + public function getLoop() |
|
| 479 | + { |
|
| 480 | +} |
|
| 441 | 481 | |
| 442 | 482 | /** |
| 443 | 483 | * Invokes the watcher callback with the given received events bit mask. |
| 444 | 484 | * |
| 445 | 485 | * @param int $events Bit mask of watcher received events. |
| 446 | 486 | */ |
| 447 | - public function invoke($events) {} |
|
| 487 | + public function invoke($events) |
|
| 488 | + { |
|
| 489 | +} |
|
| 448 | 490 | |
| 449 | 491 | /** |
| 450 | 492 | * Configures whether to keep the loop from returning. |
@@ -460,28 +502,36 @@ discard block |
||
| 460 | 502 | * @param bool $value With keepalive value set to FALSE the watcher won't keep Ev::run() / EvLoop::run() from |
| 461 | 503 | * returning even though the watcher is active. |
| 462 | 504 | */ |
| 463 | - public function keepAlive($value) {} |
|
| 505 | + public function keepAlive($value) |
|
| 506 | + { |
|
| 507 | +} |
|
| 464 | 508 | |
| 465 | 509 | /** |
| 466 | 510 | * Sets new callback for the watcher. |
| 467 | 511 | * |
| 468 | 512 | * @param callable $callback void callback ([ object $watcher = NULL [, int $revents = NULL ]] ) |
| 469 | 513 | */ |
| 470 | - public function setCallback(callable $callback) {} |
|
| 514 | + public function setCallback(callable $callback) |
|
| 515 | + { |
|
| 516 | +} |
|
| 471 | 517 | |
| 472 | 518 | /** |
| 473 | 519 | * Starts the watcher. |
| 474 | 520 | * |
| 475 | 521 | * Marks the watcher as active. Note that only active watchers will receive events. |
| 476 | 522 | */ |
| 477 | - public function start() {} |
|
| 523 | + public function start() |
|
| 524 | + { |
|
| 525 | +} |
|
| 478 | 526 | |
| 479 | 527 | /** |
| 480 | 528 | * Stops the watcher. |
| 481 | 529 | * |
| 482 | 530 | * Marks the watcher as inactive. Note that only active watchers will receive events. |
| 483 | 531 | */ |
| 484 | - public function stop() {} |
|
| 532 | + public function stop() |
|
| 533 | + { |
|
| 534 | +} |
|
| 485 | 535 | } |
| 486 | 536 | |
| 487 | 537 | /** |
@@ -512,7 +562,9 @@ discard block |
||
| 512 | 562 | * @param mixed $data |
| 513 | 563 | * @param int $priority |
| 514 | 564 | */ |
| 515 | - public function __construct(callable $callback, $data = null, $priority = 0) {} |
|
| 565 | + public function __construct(callable $callback, $data = null, $priority = 0) |
|
| 566 | + { |
|
| 567 | +} |
|
| 516 | 568 | |
| 517 | 569 | /** |
| 518 | 570 | * @param callable $callback |
@@ -520,7 +572,9 @@ discard block |
||
| 520 | 572 | * @param int $priority |
| 521 | 573 | * @return EvCheck |
| 522 | 574 | */ |
| 523 | - final public static function createStopped(callable $callback, $data = null, $priority = 0) {} |
|
| 575 | + final public static function createStopped(callable $callback, $data = null, $priority = 0) |
|
| 576 | + { |
|
| 577 | +} |
|
| 524 | 578 | } |
| 525 | 579 | |
| 526 | 580 | /** |
@@ -565,7 +619,9 @@ discard block |
||
| 565 | 619 | * @param mixed $data |
| 566 | 620 | * @param int $priority |
| 567 | 621 | */ |
| 568 | - public function __construct($pid, $trace, callable $callback, $data = null, $priority = 0) {} |
|
| 622 | + public function __construct($pid, $trace, callable $callback, $data = null, $priority = 0) |
|
| 623 | + { |
|
| 624 | +} |
|
| 569 | 625 | |
| 570 | 626 | /** |
| 571 | 627 | * Create instance of a stopped EvCheck watcher. |
@@ -581,7 +637,9 @@ discard block |
||
| 581 | 637 | * |
| 582 | 638 | * @return EvChild |
| 583 | 639 | */ |
| 584 | - final public static function createStopped($pid, $trace, callable $callback, $data = null, $priority = 0) {} |
|
| 640 | + final public static function createStopped($pid, $trace, callable $callback, $data = null, $priority = 0) |
|
| 641 | + { |
|
| 642 | +} |
|
| 585 | 643 | |
| 586 | 644 | /** |
| 587 | 645 | * Configures the watcher |
@@ -590,7 +648,9 @@ discard block |
||
| 590 | 648 | * @param bool $trace If FALSE, only activate the watcher when the process terminates. Otherwise(TRUE) additionally |
| 591 | 649 | * activate the watcher when the process is stopped or continued. |
| 592 | 650 | */ |
| 593 | - public function set($pid, $trace) {} |
|
| 651 | + public function set($pid, $trace) |
|
| 652 | + { |
|
| 653 | +} |
|
| 594 | 654 | } |
| 595 | 655 | |
| 596 | 656 | /** |
@@ -619,19 +679,25 @@ discard block |
||
| 619 | 679 | * @param mixed $data |
| 620 | 680 | * @param int $priority |
| 621 | 681 | */ |
| 622 | - public function __construct(EvLoop $embed, callable $callback, $data = null, $priority = 0) {} |
|
| 682 | + public function __construct(EvLoop $embed, callable $callback, $data = null, $priority = 0) |
|
| 683 | + { |
|
| 684 | +} |
|
| 623 | 685 | |
| 624 | 686 | /** |
| 625 | 687 | * Configures the watcher. |
| 626 | 688 | * |
| 627 | 689 | * @param EvLoop $embed The loop to embed, this loop must be embeddable(see Ev::embeddableBackends()). |
| 628 | 690 | */ |
| 629 | - public function set(EvLoop $embed) {} |
|
| 691 | + public function set(EvLoop $embed) |
|
| 692 | + { |
|
| 693 | +} |
|
| 630 | 694 | |
| 631 | 695 | /** |
| 632 | 696 | * Make a single, non-blocking sweep over the embedded loop. |
| 633 | 697 | */ |
| 634 | - public function sweep() {} |
|
| 698 | + public function sweep() |
|
| 699 | + { |
|
| 700 | +} |
|
| 635 | 701 | |
| 636 | 702 | /** |
| 637 | 703 | * Create stopped EvEmbed watcher object |
@@ -645,7 +711,9 @@ discard block |
||
| 645 | 711 | * |
| 646 | 712 | * @return EvEmbed |
| 647 | 713 | */ |
| 648 | - final public static function createStopped(EvLoop $embed, callable $callback, $data = null, $priority = 0) {} |
|
| 714 | + final public static function createStopped(EvLoop $embed, callable $callback, $data = null, $priority = 0) |
|
| 715 | + { |
|
| 716 | +} |
|
| 649 | 717 | } |
| 650 | 718 | |
| 651 | 719 | /** |
@@ -686,7 +754,9 @@ discard block |
||
| 686 | 754 | * @param mixed $data |
| 687 | 755 | * @param int $priority |
| 688 | 756 | */ |
| 689 | - public function __construct($fd, $events, callable $callback, $data = null, $priority = 0) {} |
|
| 757 | + public function __construct($fd, $events, callable $callback, $data = null, $priority = 0) |
|
| 758 | + { |
|
| 759 | +} |
|
| 690 | 760 | |
| 691 | 761 | /** |
| 692 | 762 | * Configures the watcher. |
@@ -694,7 +764,9 @@ discard block |
||
| 694 | 764 | * @param resource $fd A stream opened with fopen() or similar functions, numeric file descriptor, or socket. |
| 695 | 765 | * @param int $events Ev::READ and/or Ev::WRITE. See the bit masks. |
| 696 | 766 | */ |
| 697 | - public function set($fd, $events) {} |
|
| 767 | + public function set($fd, $events) |
|
| 768 | + { |
|
| 769 | +} |
|
| 698 | 770 | |
| 699 | 771 | /** |
| 700 | 772 | * Create stopped EvIo watcher object. |
@@ -709,7 +781,9 @@ discard block |
||
| 709 | 781 | * |
| 710 | 782 | * @return EvIo |
| 711 | 783 | */ |
| 712 | - final public static function createStopped($fd, $events, callable $callback, $data = null, $priority = 0) {} |
|
| 784 | + final public static function createStopped($fd, $events, callable $callback, $data = null, $priority = 0) |
|
| 785 | + { |
|
| 786 | +} |
|
| 713 | 787 | } |
| 714 | 788 | |
| 715 | 789 | /** |
@@ -767,14 +841,17 @@ discard block |
||
| 767 | 841 | */ |
| 768 | 842 | public function __construct( |
| 769 | 843 | $offset, $interval, callable $reschedule_cb = null, callable $callback, $data = null, $priority = 0 |
| 770 | - ) {} |
|
| 844 | + ) { |
|
| 845 | +} |
|
| 771 | 846 | |
| 772 | 847 | /** |
| 773 | 848 | * Simply stops and restarts the periodic watcher again. |
| 774 | 849 | * |
| 775 | 850 | * Simply stops and restarts the periodic watcher again. This is only useful when attributes are changed. |
| 776 | 851 | */ |
| 777 | - public function again() {} |
|
| 852 | + public function again() |
|
| 853 | + { |
|
| 854 | +} |
|
| 778 | 855 | |
| 779 | 856 | /** |
| 780 | 857 | * Returns the absolute time that this watcher is supposed to trigger next. |
@@ -785,7 +862,9 @@ discard block |
||
| 785 | 862 | * |
| 786 | 863 | * @return double Rhe absolute time this watcher is supposed to trigger next in seconds. |
| 787 | 864 | */ |
| 788 | - public function at() {} |
|
| 865 | + public function at() |
|
| 866 | + { |
|
| 867 | +} |
|
| 789 | 868 | |
| 790 | 869 | /** |
| 791 | 870 | * Create a stopped EvPeriodic watcher |
@@ -808,7 +887,8 @@ discard block |
||
| 808 | 887 | */ |
| 809 | 888 | final public static function createStopped( |
| 810 | 889 | $offset, $interval, callable $reschedule_cb = null, callable $callback, $data = null, $priority = 0 |
| 811 | - ) {} |
|
| 890 | + ) { |
|
| 891 | +} |
|
| 812 | 892 | } |
| 813 | 893 | |
| 814 | 894 | /** |
@@ -844,7 +924,9 @@ discard block |
||
| 844 | 924 | * @param mixed $data |
| 845 | 925 | * @param int $priority |
| 846 | 926 | */ |
| 847 | - public function __construct(callable $callback, $data = null, $priority = 0) {} |
|
| 927 | + public function __construct(callable $callback, $data = null, $priority = 0) |
|
| 928 | + { |
|
| 929 | +} |
|
| 848 | 930 | |
| 849 | 931 | /** |
| 850 | 932 | * Creates a stopped instance of EvPrepare watcher. |
@@ -858,7 +940,9 @@ discard block |
||
| 858 | 940 | * |
| 859 | 941 | * @return EvPrepare |
| 860 | 942 | */ |
| 861 | - final public static function createStopped(callable $callback, $data = null, $priority = 0) {} |
|
| 943 | + final public static function createStopped(callable $callback, $data = null, $priority = 0) |
|
| 944 | + { |
|
| 945 | +} |
|
| 862 | 946 | } |
| 863 | 947 | |
| 864 | 948 | /** |
@@ -888,14 +972,18 @@ discard block |
||
| 888 | 972 | * @param mixed $data |
| 889 | 973 | * @param int $priority |
| 890 | 974 | */ |
| 891 | - public function __construct($signum, callable $callback, $data = null, $priority = 0) {} |
|
| 975 | + public function __construct($signum, callable $callback, $data = null, $priority = 0) |
|
| 976 | + { |
|
| 977 | +} |
|
| 892 | 978 | |
| 893 | 979 | /** |
| 894 | 980 | * Configures the watcher. |
| 895 | 981 | * |
| 896 | 982 | * @param int $signum Signal number. See the constants exported by pcntl extension. See also signal(7) man page. |
| 897 | 983 | */ |
| 898 | - public function set($signum) {} |
|
| 984 | + public function set($signum) |
|
| 985 | + { |
|
| 986 | +} |
|
| 899 | 987 | |
| 900 | 988 | /** |
| 901 | 989 | * Creates a stopped instance of EvSignal watcher. |
@@ -910,7 +998,9 @@ discard block |
||
| 910 | 998 | * |
| 911 | 999 | * @return EvSignal |
| 912 | 1000 | */ |
| 913 | - final public static function createStopped($signum, callable $callback, $data = null, $priority = 0) {} |
|
| 1001 | + final public static function createStopped($signum, callable $callback, $data = null, $priority = 0) |
|
| 1002 | + { |
|
| 1003 | +} |
|
| 914 | 1004 | } |
| 915 | 1005 | |
| 916 | 1006 | /** |
@@ -953,17 +1043,23 @@ discard block |
||
| 953 | 1043 | * @param mixed $data |
| 954 | 1044 | * @param int $priority |
| 955 | 1045 | */ |
| 956 | - public function __construct($path, $interval, callable $callback, $data = null, $priority = 0) {} |
|
| 1046 | + public function __construct($path, $interval, callable $callback, $data = null, $priority = 0) |
|
| 1047 | + { |
|
| 1048 | +} |
|
| 957 | 1049 | |
| 958 | 1050 | /** |
| 959 | 1051 | * @return array The values most recently detect by Ev (without actual stat'ing). See stat(2) man page for details. |
| 960 | 1052 | */ |
| 961 | - public function attr() {} |
|
| 1053 | + public function attr() |
|
| 1054 | + { |
|
| 1055 | +} |
|
| 962 | 1056 | |
| 963 | 1057 | /** |
| 964 | 1058 | * @return array Just like EvStat::attr() , but returns the previous set of values. |
| 965 | 1059 | */ |
| 966 | - public function prev() {} |
|
| 1060 | + public function prev() |
|
| 1061 | + { |
|
| 1062 | +} |
|
| 967 | 1063 | |
| 968 | 1064 | /** |
| 969 | 1065 | * Configures the watcher. |
@@ -972,7 +1068,9 @@ discard block |
||
| 972 | 1068 | * @param double $interval Hint on how quickly a change is expected to be detected and should normally be specified |
| 973 | 1069 | * as 0.0 to let libev choose a suitable value. |
| 974 | 1070 | */ |
| 975 | - public function set($path, $interval) {} |
|
| 1071 | + public function set($path, $interval) |
|
| 1072 | + { |
|
| 1073 | +} |
|
| 976 | 1074 | |
| 977 | 1075 | /** |
| 978 | 1076 | * Initiates the stat call. |
@@ -982,7 +1080,9 @@ discard block |
||
| 982 | 1080 | * |
| 983 | 1081 | * @return bool TRUE if path exists. Otherwise FALSE. |
| 984 | 1082 | */ |
| 985 | - public function stat() {} |
|
| 1083 | + public function stat() |
|
| 1084 | + { |
|
| 1085 | +} |
|
| 986 | 1086 | |
| 987 | 1087 | /** |
| 988 | 1088 | * Create a stopped EvStat watcher object. |
@@ -998,7 +1098,9 @@ discard block |
||
| 998 | 1098 | * |
| 999 | 1099 | * @return EvStat |
| 1000 | 1100 | */ |
| 1001 | - final public static function createStopped($path, $interval, callable $callback, $data = null, $priority = 0) {} |
|
| 1101 | + final public static function createStopped($path, $interval, callable $callback, $data = null, $priority = 0) |
|
| 1102 | + { |
|
| 1103 | +} |
|
| 1002 | 1104 | } |
| 1003 | 1105 | |
| 1004 | 1106 | /** |
@@ -1052,7 +1154,9 @@ discard block |
||
| 1052 | 1154 | * @param mixed $data |
| 1053 | 1155 | * @param int $priority |
| 1054 | 1156 | */ |
| 1055 | - public function __construct($after, $repeat, callable $callback, $data = null, $priority = 0) {} |
|
| 1157 | + public function __construct($after, $repeat, callable $callback, $data = null, $priority = 0) |
|
| 1158 | + { |
|
| 1159 | +} |
|
| 1056 | 1160 | |
| 1057 | 1161 | /** |
| 1058 | 1162 | * Restarts the timer watcher. |
@@ -1064,7 +1168,9 @@ discard block |
||
| 1064 | 1168 | * - if the timer is repeating, either start it if necessary (with the repeat value), or reset the running timer to |
| 1065 | 1169 | * the repeat value. |
| 1066 | 1170 | */ |
| 1067 | - public function again() {} |
|
| 1171 | + public function again() |
|
| 1172 | + { |
|
| 1173 | +} |
|
| 1068 | 1174 | |
| 1069 | 1175 | /** |
| 1070 | 1176 | * Configures the watcher. |
@@ -1074,7 +1180,9 @@ discard block |
||
| 1074 | 1180 | * is positive, then the timer will automatically be configured to trigger again every repeat seconds later, |
| 1075 | 1181 | * until stopped manually. |
| 1076 | 1182 | */ |
| 1077 | - public function set($after, $repeat) {} |
|
| 1183 | + public function set($after, $repeat) |
|
| 1184 | + { |
|
| 1185 | +} |
|
| 1078 | 1186 | |
| 1079 | 1187 | /** |
| 1080 | 1188 | * Creates a stopped EvTimer watcher object. |
@@ -1089,7 +1197,9 @@ discard block |
||
| 1089 | 1197 | * |
| 1090 | 1198 | * @return EvTimer |
| 1091 | 1199 | */ |
| 1092 | - final public static function createStopped($after, $repeat, callable $callback, $data = null, $priority = 0) {} |
|
| 1200 | + final public static function createStopped($after, $repeat, callable $callback, $data = null, $priority = 0) |
|
| 1201 | + { |
|
| 1202 | +} |
|
| 1093 | 1203 | } |
| 1094 | 1204 | |
| 1095 | 1205 | /** |
@@ -1119,7 +1229,9 @@ discard block |
||
| 1119 | 1229 | * @param mixed $data |
| 1120 | 1230 | * @param int $priority |
| 1121 | 1231 | */ |
| 1122 | - public function __construct(callable $callback, $data = null, $priority = 0) {} |
|
| 1232 | + public function __construct(callable $callback, $data = null, $priority = 0) |
|
| 1233 | + { |
|
| 1234 | +} |
|
| 1123 | 1235 | |
| 1124 | 1236 | /** |
| 1125 | 1237 | * Creates a stopped EvIdle instance. |
@@ -1130,7 +1242,9 @@ discard block |
||
| 1130 | 1242 | * |
| 1131 | 1243 | * @return EvIdle |
| 1132 | 1244 | */ |
| 1133 | - final public static function createStopped(callable $callback, $data = null, $priority = 0) {} |
|
| 1245 | + final public static function createStopped(callable $callback, $data = null, $priority = 0) |
|
| 1246 | + { |
|
| 1247 | +} |
|
| 1134 | 1248 | } |
| 1135 | 1249 | |
| 1136 | 1250 | /** |
@@ -1152,7 +1266,9 @@ discard block |
||
| 1152 | 1266 | * @param mixed $data |
| 1153 | 1267 | * @param int $priority |
| 1154 | 1268 | */ |
| 1155 | - public function __construct(callable $callback, $data = null, $priority = 0) {} |
|
| 1269 | + public function __construct(callable $callback, $data = null, $priority = 0) |
|
| 1270 | + { |
|
| 1271 | +} |
|
| 1156 | 1272 | |
| 1157 | 1273 | /** |
| 1158 | 1274 | * Creates a stopped EvFork instance. |
@@ -1163,7 +1279,9 @@ discard block |
||
| 1163 | 1279 | * |
| 1164 | 1280 | * @return EvFork |
| 1165 | 1281 | */ |
| 1166 | - final public static function createStopped(callable $callback, $data = null, $priority = 0) {} |
|
| 1282 | + final public static function createStopped(callable $callback, $data = null, $priority = 0) |
|
| 1283 | + { |
|
| 1284 | +} |
|
| 1167 | 1285 | } |
| 1168 | 1286 | |
| 1169 | 1287 | /** |
@@ -1226,14 +1344,18 @@ discard block |
||
| 1226 | 1344 | * @param float $io_interval |
| 1227 | 1345 | * @param float $timeout_interval |
| 1228 | 1346 | */ |
| 1229 | - public function __construct($flags = Ev::FLAG_AUTO, $data = null, $io_interval = 0.0, $timeout_interval = 0.0) {} |
|
| 1347 | + public function __construct($flags = Ev::FLAG_AUTO, $data = null, $io_interval = 0.0, $timeout_interval = 0.0) |
|
| 1348 | + { |
|
| 1349 | +} |
|
| 1230 | 1350 | |
| 1231 | 1351 | /** |
| 1232 | 1352 | * Returns an integer describing the backend used by libev. |
| 1233 | 1353 | * |
| 1234 | 1354 | * @return int An integer describing the backend used by libev. See Ev::backend(). |
| 1235 | 1355 | */ |
| 1236 | - public function backend() {} |
|
| 1356 | + public function backend() |
|
| 1357 | + { |
|
| 1358 | +} |
|
| 1237 | 1359 | |
| 1238 | 1360 | /** |
| 1239 | 1361 | * Creates EvCheck object associated with the current event loop instance. |
@@ -1243,7 +1365,9 @@ discard block |
||
| 1243 | 1365 | * @param int $priority |
| 1244 | 1366 | * @return EvCheck |
| 1245 | 1367 | */ |
| 1246 | - public function check(callable $callback, $data = null, $priority = 0) {} |
|
| 1368 | + public function check(callable $callback, $data = null, $priority = 0) |
|
| 1369 | + { |
|
| 1370 | +} |
|
| 1247 | 1371 | |
| 1248 | 1372 | /** |
| 1249 | 1373 | * Creates EvChild object associated with the current event loop instance; |
@@ -1255,7 +1379,9 @@ discard block |
||
| 1255 | 1379 | * @param int $priority |
| 1256 | 1380 | * @return EvChild |
| 1257 | 1381 | */ |
| 1258 | - public function child($pid, $trace, callable $callback, $data = null, $priority = 0) {} |
|
| 1382 | + public function child($pid, $trace, callable $callback, $data = null, $priority = 0) |
|
| 1383 | + { |
|
| 1384 | +} |
|
| 1259 | 1385 | |
| 1260 | 1386 | /** |
| 1261 | 1387 | * Creates EvEmbed object associated with the current event loop instance. |
@@ -1266,7 +1392,9 @@ discard block |
||
| 1266 | 1392 | * @param int $priority |
| 1267 | 1393 | * @return EvEmbed |
| 1268 | 1394 | */ |
| 1269 | - public function embed(EvLoop $other, callable $callback, $data = null, $priority = 0) {} |
|
| 1395 | + public function embed(EvLoop $other, callable $callback, $data = null, $priority = 0) |
|
| 1396 | + { |
|
| 1397 | +} |
|
| 1270 | 1398 | |
| 1271 | 1399 | /** |
| 1272 | 1400 | * Creates EvFork object associated with the current event loop instance. |
@@ -1276,7 +1404,9 @@ discard block |
||
| 1276 | 1404 | * @param int $priority |
| 1277 | 1405 | * @return EvFork |
| 1278 | 1406 | */ |
| 1279 | - public function fork(callable $callback, $data = null, $priority = 0) {} |
|
| 1407 | + public function fork(callable $callback, $data = null, $priority = 0) |
|
| 1408 | + { |
|
| 1409 | +} |
|
| 1280 | 1410 | |
| 1281 | 1411 | /** |
| 1282 | 1412 | * Creates EvIdle object associated with the current event loop instance. |
@@ -1286,12 +1416,16 @@ discard block |
||
| 1286 | 1416 | * @param int $priority |
| 1287 | 1417 | * @return EvIdle |
| 1288 | 1418 | */ |
| 1289 | - public function idle(callable $callback, $data = null, $priority = 0) {} |
|
| 1419 | + public function idle(callable $callback, $data = null, $priority = 0) |
|
| 1420 | + { |
|
| 1421 | +} |
|
| 1290 | 1422 | |
| 1291 | 1423 | /** |
| 1292 | 1424 | * Invoke all pending watchers while resetting their pending state. |
| 1293 | 1425 | */ |
| 1294 | - public function invokePending() {} |
|
| 1426 | + public function invokePending() |
|
| 1427 | + { |
|
| 1428 | +} |
|
| 1295 | 1429 | |
| 1296 | 1430 | /** |
| 1297 | 1431 | * Creates EvIo object associated with the current event loop instance. |
@@ -1302,7 +1436,9 @@ discard block |
||
| 1302 | 1436 | * @param mixed $data |
| 1303 | 1437 | * @param int $priority |
| 1304 | 1438 | */ |
| 1305 | - public function io($fd, $events, callable $callback, $data = null, $priority = 0) {} |
|
| 1439 | + public function io($fd, $events, callable $callback, $data = null, $priority = 0) |
|
| 1440 | + { |
|
| 1441 | +} |
|
| 1306 | 1442 | |
| 1307 | 1443 | /** |
| 1308 | 1444 | * Must be called after a fork. |
@@ -1311,7 +1447,9 @@ discard block |
||
| 1311 | 1447 | * Ev::FLAG_FORKCHECK which calls this function automatically, at some performance loss (refer to the libev |
| 1312 | 1448 | * documentation). |
| 1313 | 1449 | */ |
| 1314 | - public function loopFork() {} |
|
| 1450 | + public function loopFork() |
|
| 1451 | + { |
|
| 1452 | +} |
|
| 1315 | 1453 | |
| 1316 | 1454 | /** |
| 1317 | 1455 | * Returns the current "event loop time". |
@@ -1323,7 +1461,9 @@ discard block |
||
| 1323 | 1461 | * |
| 1324 | 1462 | * @return double Time of the event loop in (fractional) seconds. |
| 1325 | 1463 | */ |
| 1326 | - public function now() {} |
|
| 1464 | + public function now() |
|
| 1465 | + { |
|
| 1466 | +} |
|
| 1327 | 1467 | |
| 1328 | 1468 | /** |
| 1329 | 1469 | * Establishes the current time by querying the kernel, updating the time returned by Ev::now in the progress. |
@@ -1334,7 +1474,9 @@ discard block |
||
| 1334 | 1474 | * This method is rarely useful, but when some event callback runs for a very long time without entering the event |
| 1335 | 1475 | * loop, updating libev's consideration of the current time is a good idea. |
| 1336 | 1476 | */ |
| 1337 | - public function nowUpdate() {} |
|
| 1477 | + public function nowUpdate() |
|
| 1478 | + { |
|
| 1479 | +} |
|
| 1338 | 1480 | |
| 1339 | 1481 | /** |
| 1340 | 1482 | * Creates EvPeriodic object associated with the current event loop instance. |
@@ -1345,7 +1487,9 @@ discard block |
||
| 1345 | 1487 | * @param mixed $data |
| 1346 | 1488 | * @param int $priority |
| 1347 | 1489 | */ |
| 1348 | - public function periodic($offset, $interval, callable $callback, $data = null, $priority = 0) {} |
|
| 1490 | + public function periodic($offset, $interval, callable $callback, $data = null, $priority = 0) |
|
| 1491 | + { |
|
| 1492 | +} |
|
| 1349 | 1493 | |
| 1350 | 1494 | /** |
| 1351 | 1495 | * Creates EvPrepare object associated with the current event loop instance. |
@@ -1354,14 +1498,18 @@ discard block |
||
| 1354 | 1498 | * @param mixed $data |
| 1355 | 1499 | * @param int $priority |
| 1356 | 1500 | */ |
| 1357 | - public function prepare(callable $callback, $data = null, $priority = 0) {} |
|
| 1501 | + public function prepare(callable $callback, $data = null, $priority = 0) |
|
| 1502 | + { |
|
| 1503 | +} |
|
| 1358 | 1504 | |
| 1359 | 1505 | /** |
| 1360 | 1506 | * Resume previously suspended default event loop. |
| 1361 | 1507 | * |
| 1362 | 1508 | * EvLoop::suspend() and EvLoop::resume() methods suspend and resume a loop correspondingly. |
| 1363 | 1509 | */ |
| 1364 | - public function resume() {} |
|
| 1510 | + public function resume() |
|
| 1511 | + { |
|
| 1512 | +} |
|
| 1365 | 1513 | |
| 1366 | 1514 | /** |
| 1367 | 1515 | * Begin checking for events and calling callbacks for the loop. |
@@ -1373,7 +1521,9 @@ discard block |
||
| 1373 | 1521 | * |
| 1374 | 1522 | * @param int $flags One of the Ev::RUN_* flags. |
| 1375 | 1523 | */ |
| 1376 | - public function run($flags = Ev::FLAG_AUTO) {} |
|
| 1524 | + public function run($flags = Ev::FLAG_AUTO) |
|
| 1525 | + { |
|
| 1526 | +} |
|
| 1377 | 1527 | |
| 1378 | 1528 | /** |
| 1379 | 1529 | * Creates EvSignal object associated with the current event loop instance. |
@@ -1384,7 +1534,9 @@ discard block |
||
| 1384 | 1534 | * @param int $priority |
| 1385 | 1535 | * @return EvSignal |
| 1386 | 1536 | */ |
| 1387 | - public function signal($signal, callable $callback, $data = null, $priority = 0) {} |
|
| 1537 | + public function signal($signal, callable $callback, $data = null, $priority = 0) |
|
| 1538 | + { |
|
| 1539 | +} |
|
| 1388 | 1540 | |
| 1389 | 1541 | /** |
| 1390 | 1542 | * Creates EvStats object associated with the current event loop instance. |
@@ -1396,21 +1548,27 @@ discard block |
||
| 1396 | 1548 | * @param int $priority |
| 1397 | 1549 | * @return EvStat |
| 1398 | 1550 | */ |
| 1399 | - public function stat($path, $interval, callable $callback, $data = null, $priority = 0) {} |
|
| 1551 | + public function stat($path, $interval, callable $callback, $data = null, $priority = 0) |
|
| 1552 | + { |
|
| 1553 | +} |
|
| 1400 | 1554 | |
| 1401 | 1555 | /** |
| 1402 | 1556 | * Stops the event loop. |
| 1403 | 1557 | * |
| 1404 | 1558 | * @param int $how One of the Ev::BREAK_* flags. |
| 1405 | 1559 | */ |
| 1406 | - public function stop($how = Ev::BREAK_ALL) {} |
|
| 1560 | + public function stop($how = Ev::BREAK_ALL) |
|
| 1561 | + { |
|
| 1562 | +} |
|
| 1407 | 1563 | |
| 1408 | 1564 | /** |
| 1409 | 1565 | * Suspend the loop. |
| 1410 | 1566 | * |
| 1411 | 1567 | * EvLoop::suspend() and EvLoop::resume() methods suspend and resume a loop correspondingly. |
| 1412 | 1568 | */ |
| 1413 | - public function suspend() {} |
|
| 1569 | + public function suspend() |
|
| 1570 | + { |
|
| 1571 | +} |
|
| 1414 | 1572 | |
| 1415 | 1573 | /** |
| 1416 | 1574 | * Creates EvTimer object associated with the current event loop instance. |
@@ -1422,7 +1580,9 @@ discard block |
||
| 1422 | 1580 | * @param int $priority |
| 1423 | 1581 | * @return EvTimer |
| 1424 | 1582 | */ |
| 1425 | - public function timer($after, $repeat, callable $callback, $data = null, $priority = 0) {} |
|
| 1583 | + public function timer($after, $repeat, callable $callback, $data = null, $priority = 0) |
|
| 1584 | + { |
|
| 1585 | +} |
|
| 1426 | 1586 | |
| 1427 | 1587 | /** |
| 1428 | 1588 | * Performs internal consistency checks (for debugging). |
@@ -1430,7 +1590,9 @@ discard block |
||
| 1430 | 1590 | * Performs internal consistency checks (for debugging libev) and abort the program if any data structures were |
| 1431 | 1591 | * found to be corrupted. |
| 1432 | 1592 | */ |
| 1433 | - public function verify() {} |
|
| 1593 | + public function verify() |
|
| 1594 | + { |
|
| 1595 | +} |
|
| 1434 | 1596 | |
| 1435 | 1597 | /** |
| 1436 | 1598 | * Returns or creates the default event loop. |
@@ -1445,5 +1607,6 @@ discard block |
||
| 1445 | 1607 | */ |
| 1446 | 1608 | public static function defaultLoop( |
| 1447 | 1609 | $flags = Ev::FLAG_AUTO, $data = null, $io_interval = 0.0, $timeout_interval = 0.0 |
| 1448 | - ) {} |
|
| 1610 | + ) { |
|
| 1611 | +} |
|
| 1449 | 1612 | } |