Longman\TelegramBot\Entities\Entity::getProperty PHP Method

getProperty() public method

Get a property from the current Entity
public getProperty ( mixed $property, mixed $default = null ) : mixed
$property mixed
$default mixed
return mixed
    public function getProperty($property, $default = null)
    {
        if (isset($this->{$property})) {
            return $this->{$property};
        }
        return $default;
    }