Skip to content

Commit

Permalink
Remove abstract methods from Watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 18, 2015
1 parent fe6f004 commit 790e259
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/Loop/Watcher/Immediate.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function cancel()
}

/**
* {@inheritdoc}
* An unreferenced event will allow the event loop to exit if no other watchers are pending.
*/
public function unreference()
{
Expand All @@ -110,7 +110,7 @@ public function unreference()
}

/**
* {@inheritdoc}
* Adds a reference to the event, causing the event loop to continue to run as long as the watcher is still pending.
*/
public function reference()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Loop/Watcher/Io.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ public function getResource()
}

/**
* {@inheritdoc}
* An unreferenced event will allow the event loop to exit if no other watchers are pending.
*/
public function unreference()
{
$this->manager->unreference($this);
}

/**
* {@inheritdoc}
* Adds a reference to the event, causing the event loop to continue to run as long as the watcher is still pending.
*/
public function reference()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Loop/Watcher/Signal.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function getSignal()
}

/**
* {@inheritdoc}
* An unreferenced event will allow the event loop to exit if no other watchers are pending.
*/
public function unreference()
{
Expand All @@ -127,7 +127,7 @@ public function unreference()
}

/**
* {@inheritdoc}
* Adds a reference to the event, causing the event loop to continue to run as long as the watcher is still pending.
*/
public function reference()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Loop/Watcher/Timer.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function again()
}

/**
* {@inheritdoc}
* An unreferenced event will allow the event loop to exit if no other watchers are pending.
*/
public function unreference()
{
Expand All @@ -153,7 +153,7 @@ public function unreference()
}

/**
* {@inheritdoc}
* Adds a reference to the event, causing the event loop to continue to run as long as the watcher is still pending.
*/
public function reference()
{
Expand Down
10 changes: 0 additions & 10 deletions src/Loop/Watcher/Watcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,4 @@ public function setData($data)
{
$this->data = $data;
}

/**
* An unreferenced event will allow the event loop to exit if no other watchers are pending.
*/
abstract public function unreference();

/**
* Adds a reference to the event, causing the event loop to continue to run as long as the watcher is still pending.
*/
abstract public function reference();
}

0 comments on commit 790e259

Please sign in to comment.