function isTypingSince(\CharlotteDunois\Yasmin\Models\User $user) {
        if(!$this->isTyping($user)) {
            return -1;
        }
        
        return (\time() - $this->typings->get($user->id)['timestamp']);
    }
function isTypingSince(\CharlotteDunois\Yasmin\Models\User $user) {
        if(!$this->isTyping($user)) {
            return -1;
        }
        
        return (\time() - $this->typings->get($user->id)['timestamp']);
    }
function isTypingSince ( \ CharlotteDunois \ Yasmin \ Models \ User $ user ) { if ( ! $ this -> isTyping ( $ user ) ) { return - 1 ; } return ( \ time ( ) - $ this -> typings -> get ( $ user -> id ) [ 'timestamp' ] ) ; }
Determines whether how long the given user has been typing in this channel. Returns -1 if the user is not typing.
@param \CharlotteDunois\Yasmin\Models\User  $user
@return int
Determines whether how long the given user has been typing in this channel . Returns - 1 if the user is not typing .