Skip to content

Commit

Permalink
Update Connection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Oct 24, 2024
1 parent 7a8c36c commit 571fc29
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Contracts/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,20 +149,20 @@ public function isStale(): bool
}

/**
* Mark the connection as using control frames to track activity.
* Determine whether the connection uses control frames.
*/
public function setUsesControlFrames(bool $usesControlFrames = true): Connection
public function usesControlFrames(): bool
{
$this->usesControlFrames = $usesControlFrames;

return $this;
return $this->usesControlFrames;
}

/**
* Determine whether the connection uses control frames.
* Mark the connection as using control frames to track activity.
*/
public function usesControlFrames(): bool
public function setUsesControlFrames(bool $usesControlFrames = true): Connection
{
return $this->usesControlFrames;
$this->usesControlFrames = $usesControlFrames;

return $this;
}
}

0 comments on commit 571fc29

Please sign in to comment.