diff --git a/src/Contracts/Connection.php b/src/Contracts/Connection.php index e4a046b..4f72979 100644 --- a/src/Contracts/Connection.php +++ b/src/Contracts/Connection.php @@ -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; } }