ForkAPI::setUserAgent PHP Méthode

setUserAgent() public méthode

Set the user-agent for you application It will be appended to ours, the result will look like: "PHP ForkAPI/ "
public setUserAgent ( string $userAgent ) : void
$userAgent string Your user-agent, it should look like /.
Résultat void
    public function setUserAgent($userAgent)
    {
        trigger_error('The api is deprecated and will be removed in version 5', E_USER_DEPRECATED);
        $this->userAgent = (string) $userAgent;
    }