public function __construct($name = 'phlackbot', $version = 'UNKNOWN', BotCommand $botCommand = null) { $this->bot = $botCommand ?: new BotCommand(new ConsoleAdapter(new Mainframe())); parent::__construct($name, $version); }