Exemplo n.º 1
0
 /**
  * Get User id
  *
  * @return string
  */
 public function getUserId()
 {
     if ($this->user instanceof \Newscoop\Entity\User) {
         return $this->user->getId();
     }
     return null;
 }
Exemplo n.º 2
0
 /**
  * Get user id
  *
  * @return int
  */
 public function getUserId()
 {
     return $this->user !== null ? $this->user->getId() : null;
 }