Mercurial > hg > isophonics-drupal-site
view vendor/consolidation/annotated-command/tests/src/ApplicationWithTerminalWidth.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
line wrap: on
line source
<?php namespace Consolidation\TestUtils; use Symfony\Component\Console\Application; class ApplicationWithTerminalWidth extends Application { protected $width = 0; protected $height = 0; public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN') { parent::__construct($name, $version); } public function setWidthAndHeight($width, $height) { $this->width = $width; $this->height = $height; } public function getTerminalDimensions() { return [ $this->width, $this->height ]; } }