14 lines
271 B
PHP
14 lines
271 B
PHP
<?php
|
|
namespace ProVM\Service;
|
|
|
|
class Remote
|
|
{
|
|
public function __construct(protected Ipify $ipService, protected Repository $dbService) {}
|
|
|
|
public function update(): void
|
|
{
|
|
$ip = $this->ipService->get();
|
|
$this->dbService->update($ip);
|
|
}
|
|
}
|