Closed NinoSkopac closed 3 years ago
Client::send
is captured by Client::__call
, so $client->send('Hello world!')
is a shorthand for:
$message = $client->createMessage();
$message->send('Hello world!');
Other than the username, those snippets achieve the same thing.
Ah okay.
I used to use Client::send() but have shifted to the new paradigm because my IDE (PHPStorm) was saying the aforementioned method doesn't exist.
Ah OK, in master branch these are documented using @method
properties which PHPStorm respects — this will be in an upcoming release
This is not how it works anymore, I believe:
it's more like this: