. */ /** * Doctrine_Cli_Task_TestTask * * @package Doctrine * @subpackage Cli * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.com * @since 1.0 * @version $Revision: 2761 $ * @author Jonathan H. Wage */ class Doctrine_Cli_Task_TestTask extends Doctrine_Cli_Task { public $name = 'Test Task', $description = 'This is a sample task which prints the arguments you enter.', $requiredArguments = array('name', 'title'), $optionalArguments = array('description'); public function execute($args) { $count = 0; foreach ($args as $name => $value) { $count++; echo $count . ".) " . $name . " => " . $value . "\n"; } } }