src/main/php/request/WebRequest.php
public function userAgent(array $botSignatures = []): UserAgent
    {
        return new UserAgent(
                $this->headers->value('HTTP_USER_AGENT')->value(),
                $this->cookies->count() > 0,
                $botSignatures
        );
    }
public function userAgent(array $botSignatures = []): UserAgent
    {
        return new UserAgent(
                $this->headers->value('HTTP_USER_AGENT')->value(),
                $this->cookies->count() > 0,
                $botSignatures
        );
    }
public function userAgent ( array $ botSignatures = [ ] ) : UserAgent { return new UserAgent ( $ this -> headers -> value ( 'HTTP_USER_AGENT' ) -> value ( ) , $ this -> cookies -> count ( ) > 0 , $ botSignatures ) ; }
returns the user agent which issued the request

Please be aware that user agents can fake their appearance.

The bot recognition will recognize Googlebot, Bing (including former
msnbot), Yahoo! Slurp, Pingdom and Yandex by default. Additional
signatures can be passed, they must contain a regular expression which
matches the user agent of a bot.

@param   string[]  $botSignatures  optional  additional list of bot user agent signatures
@return  \stubbles\webapp\request\UserAgent
@since   4.1.0
returns the user agent which issued the request