. */ namespace Doctrine\ORM\Tools\Cli\Task; use Doctrine\ORM\Tools\Cli\AbstractTask; /** * 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 Version extends AbstractTask { /** * @inheritdoc */ public function extendedHelp() { $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()->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()->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'); } }