From a62c22ff53a5902acc1a5ef5cce865f249c5f79c Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sat, 21 Oct 2023 10:01:09 +0200 Subject: [PATCH] Change return types --- src/Colors/Rgb/Color.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Colors/Rgb/Color.php b/src/Colors/Rgb/Color.php index 3ce1313b..c05aaf5f 100644 --- a/src/Colors/Rgb/Color.php +++ b/src/Colors/Rgb/Color.php @@ -27,22 +27,22 @@ class Color implements ColorInterface ]; } - public function red(): Red + public function red(): ColorChannelInterface { return $this->channel(Red::class); } - public function green(): Green + public function green(): ColorChannelInterface { return $this->channel(Green::class); } - public function blue(): Blue + public function blue(): ColorChannelInterface { return $this->channel(Blue::class); } - public function alpha(): Alpha + public function alpha(): ColorChannelInterface { return $this->channel(Alpha::class); }