Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publicize some potentially desired methods #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/LetterAvatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down Expand Up @@ -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);

Expand All @@ -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')));
}
Expand Down