예제 #1
0
 /**
  * Invoke
  * @return string|null
  */
 public function __invoke()
 {
     return $this->ipService->getIp();
 }
예제 #2
0
 /**
  * Return detected IP address
  * @return string
  */
 public function __toString()
 {
     $ip = $this->ipService->getIp();
     return null === $ip ? '' : $ip;
 }