Skip to content

Commit

Permalink
Update Avatar.php (#75)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zahirkelloud authored and uyab committed May 24, 2019
1 parent 0bd373c commit 58470db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,13 @@ public function setShape($shape)

return $this;
}

public function setChars($chars)
{
$this->chars = $chars;

return $this;
}

public function getInitial()
{
Expand Down

0 comments on commit 58470db

Please sign in to comment.