| 1 | <?php |
||
| 5 | class StaticIpDetector implements IpDetectorInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | private $ip; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Create Static Ip Detector |
||
| 14 | * Ip that will be in constructor will return as actual request IP. |
||
| 15 | * |
||
| 16 | * @param string $ip |
||
| 17 | */ |
||
| 18 | public function __construct($ip) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | public function getRequestIp() |
||
| 30 | } |
||
| 31 |