| Path : /proc/self/root/var/www/html/phkaymedia/vendor/irazasyed/telegram-bot-sdk/src/Keyboard/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //proc/self/root/var/www/html/phkaymedia/vendor/irazasyed/telegram-bot-sdk/src/Keyboard/Base.php |
<?php
namespace Telegram\Bot\Keyboard;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
/**
* Class Base.
*
* @template TKey of array-key
* @template TValue
* @extends Collection<TKey, TValue>
*/
class Base extends Collection
{
/**
* Dynamically build params.
*
* @param string $method
* @param array $args
*
* @return $this
*/
public function __call($method, $args)
{
if (! Str::startsWith($method, 'set')) {
return parent::__call($method, $args);
}
$property = Str::snake(substr($method, 3));
$this->items[$property] = $args[0];
return $this;
}
}