Newscoop\Entity\Comment\Commenter::getUserId PHP Метод

getUserId() публичный Метод

Get id of the linked user if there is one
public getUserId ( ) : string
Результат string
    public function getUserId()
    {
        return $this->getUser() ? $this->getUser()->getId() : '';
    }

Usage Example

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