PHP Classes

File: src/Interfaces/UserInterface.php

Recommend this page to a friend!
  Classes of Marcel Pociot  >  BotMan  >  src/Interfaces/UserInterface.php  
File: src/Interfaces/UserInterface.php
Role: Class source
Content type: text/plain
Description: Class source
Class: BotMan
A framework agnostic PHP library to build chat bot
Author: By
Last change: Indicate possible null values in PHPDoc @return (#1097)

To prevent error messages from PHPStan like:

never returns null so it can be removed from the return typehint.

when using code like this:
class Bot{

/** @var BotManApiClient */
private $botMan;

public function getChatUsername() : ?string
return $this->botMan->getUser()->getUserName();
Date: 1 year ago
Size: 481 bytes

You need to be a registered user and login to get this file.

Login Immediately with your account on:

For more information send a message to info at phpclasses dot org.