Mercurial > hg > isophonics-drupal-site
view vendor/consolidation/annotated-command/src/Input/StdinAwareTrait.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | |
children |
line wrap: on
line source
<?php namespace Consolidation\AnnotatedCommand\Input; /** * StdinAwareTrait provides the implementation for StdinAwareInterface. */ trait StdinAwareTrait { protected $stdinHandler; /** * @inheritdoc */ public function setStdinHandler(StdinHandler $stdin) { $this->stdinHandler = $stdin; } /** * @inheritdoc */ public function stdin() { if (!$this->stdinHandler) { $this->stdinHandler = new StdinHandler(); } return $this->stdinHandler; } }