. */ namespace Doctrine\ORM\Tools\Cli\Tasks; /** * CLI Task to display the doctrine version * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 2.0 * @version $Revision$ * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel */ class VersionTask extends AbstractTask { /** * @inheritdoc */ public function extendedHelp() { $this->getPrinter()->writeln('version extended help.', 'INFO'); /*$this->getPrinter()->write('version extended help' . PHP_EOL, 'HEADER'); $this->getPrinter()->write('version extended help' . PHP_EOL, 'ERROR'); $this->getPrinter()->write('version extended help' . PHP_EOL, 'INFO'); $this->getPrinter()->write('version extended help' . PHP_EOL, 'COMMENT'); $this->getPrinter()->write('version extended help' . PHP_EOL, 'NONE');*/ } /** * @inheritdoc */ public function basicHelp() { $this->getPrinter()->writeln('version', 'KEYWORD'); /*$this->getPrinter()->write('version basic help' . PHP_EOL, 'HEADER'); $this->getPrinter()->write('version basic help' . PHP_EOL, 'ERROR'); $this->getPrinter()->write('version basic help' . PHP_EOL, 'INFO'); $this->getPrinter()->write('version basic help' . PHP_EOL, 'COMMENT'); $this->getPrinter()->write('version basic help' . PHP_EOL, 'NONE');*/ } /** * @inheritdoc */ public function validate() { return true; } /** * Displays the current version of Doctrine * */ public function run() { $this->getPrinter()->writeln('version normal flow.', 'INFO'); /*$this->getPrinter()->write('version run' . PHP_EOL, 'HEADER'); $this->getPrinter()->write('version run' . PHP_EOL, 'ERROR'); $this->getPrinter()->write('version run' . PHP_EOL, 'INFO'); $this->getPrinter()->write('version run' . PHP_EOL, 'COMMENT'); $this->getPrinter()->write('version run' . PHP_EOL, 'NONE');*/ } }