Newscoop\Entity\Comment\Commenter::getUserName PHP Method

getUserName() public method

Get name of the linked user if there is one
public getUserName ( ) : string
return string
    public function getUserName()
    {
        return $this->getUser() ? $this->getUser()->getName() : '';
    }

Usage Example

 public function getUserName()
 {
     $this->__load();
     return parent::getUserName();
 }