Newscoop\Entity\User\Ip::getIp PHP Méthode

getIp() public méthode

Get ip
public getIp ( ) : string
Résultat string
    public function getIp()
    {
        return long2ip($this->ip);
    }

Usage Example

 /**
  * 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::getIp