src/Initials.php
public function generate($name = null)
    {
        if ($name !== null) {
            $this->name = $name;
            $this->initials = $this->generateInitials();
        }

        return (string) $this;
    }
public function generate($name = null)
    {
        if ($name !== null) {
            $this->name = $name;
            $this->initials = $this->generateInitials();
        }

        return (string) $this;
    }
public function generate ( $ name = null ) { if ( $ name !== null ) { $ this -> name = $ name ; $ this -> initials = $ this -> generateInitials ( ) ; } return ( string ) $ this ; }
Generate the initials.

@param null|string $name

@return string
Generate the initials .