From b2f5508293f941af407a8c1c097f3b602436f3c2 Mon Sep 17 00:00:00 2001 From: Reece Alexander Date: Sat, 19 Oct 2019 23:41:38 +1000 Subject: [PATCH] Publicize some potentially desired methods --- src/LetterAvatar.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/LetterAvatar.php b/src/LetterAvatar.php index b6772a5..320390f 100644 --- a/src/LetterAvatar.php +++ b/src/LetterAvatar.php @@ -86,7 +86,7 @@ public function setColor($backgroundColor, $foregroundColor) /** * @param string $name */ - private function setName(string $name) + public function setName(string $name) { $this->name = $name; } @@ -103,7 +103,7 @@ private function setImageManager(ImageManager $imageManager) /** * @param string $shape */ - private function setShape(string $shape) + public function setShape(string $shape) { $this->shape = $shape; } @@ -112,7 +112,7 @@ private function setShape(string $shape) /** * @param int $size */ - private function setSize(int $size) + public function setSize(int $size) { $this->size = $size; } @@ -153,7 +153,7 @@ private function generate(): \Intervention\Image\Image * @param string $name * @return string */ - private function getInitials(string $name): string + public function getInitials(string $name): string { $nameParts = $this->break_name($name); @@ -171,7 +171,7 @@ private function getInitials(string $name): string * @param string $word * @return string */ - private function getFirstLetter(string $word): string + public function getFirstLetter(string $word): string { return mb_strtoupper(trim(mb_substr($word, 0, 1, 'UTF-8'))); }