Newscoop\Entity\User\Ip::getUserId PHP Метод

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

Get user id
public getUserId ( ) : integer
Результат integer
    public function getUserId()
    {
        return $this->user !== null ? $this->user->getId() : null;
    }

Usage Example

Пример #1
0
 /**
  * Get json representation of subscription ip
  *
  * @param Newscoop\Entity\User\Ip $ip
  * @return array
  */
 public function SubscriptionIpJson(\Newscoop\Entity\User\Ip $ip)
 {
     return array('ip' => $ip->getIp(), 'number' => $ip->getNumber(), 'id' => implode(':', array($ip->getUserId(), $ip->getIp())));
 }
All Usage Examples Of Newscoop\Entity\User\Ip::getUserId