for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PhpBotFramework.
*
* PhpBotFramework is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, version 3.
* PhpBotFramework is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
namespace PhpBotFramework\Commands;
/**
* @internal
* \class Basic command
class BasicCommand
{
/** @internal
* \brief Command closure called when triggered. */
protected $script;
* \brief Get closure of this command.
* @return callable Closure.
public function getScript() : callable
return $this->script;
}