From 3aec1d3cfb11a152a3a8ac193cde01fc6ab3c5c8 Mon Sep 17 00:00:00 2001 From: "Zee (Zahir) Kelloud" Date: Fri, 24 May 2019 12:44:07 -0400 Subject: [PATCH] Update Avatar.php Added a mutator for the chars attribute. This allows more control and variability over the initials length. Think of companies names that are composed of variable number of words. --- src/Avatar.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Avatar.php b/src/Avatar.php index 43d85a4..1c8238f 100644 --- a/src/Avatar.php +++ b/src/Avatar.php @@ -273,6 +273,13 @@ public function setShape($shape) return $this; } + + public function setChars($chars) + { + $this->chars = $chars; + + return $this; + } public function getInitial() {