Method | Description | |
---|---|---|
__call ( $method, $args ) : mixed | null | Return the variable for the called getter or magically set properties dynamically. | |
__construct ( array $data, string $bot_name = '' ) | Entity constructor. | |
__toString ( ) : string | Perform to string | |
escapeMarkdown ( string $string ) : string | Escape markdown special characters | |
getProperty ( mixed $property, mixed $default = null ) : mixed | Get a property from the current Entity | |
toJson ( ) : string | Perform to json | |
tryMention ( boolean $escape_markdown = false ) : string | null | Try to mention the user |
Method | Description | |
---|---|---|
assignMemberVariables ( array $data ) | Helper to set member variables | |
makePrettyObjectArray ( string $class, string $property ) : array | Return an array of nice objects from an array of object arrays | |
subEntities ( ) : array | Get the list of the properties that are themselves Entities | |
validate ( ) | Perform any special entity validation |
public __construct ( array $data, string $bot_name = '' ) | ||
$data | array | |
$bot_name | string |
protected assignMemberVariables ( array $data ) | ||
$data | array |
public escapeMarkdown ( string $string ) : string | ||
$string | string | |
return | string |
protected subEntities ( ) : array | ||
return | array |