Mercurial > hg > cmmr2012-drupal-site
view vendor/consolidation/annotated-command/src/AnnotationData.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children | a9cd425dd02b |
line wrap: on
line source
<?php namespace Consolidation\AnnotatedCommand; use Consolidation\AnnotatedCommand\Parser\Internal\CsvUtils; class AnnotationData extends \ArrayObject { public function get($key, $default = '') { return $this->has($key) ? CsvUtils::toString($this[$key]) : $default; } public function getList($key, $default = []) { return $this->has($key) ? CsvUtils::toList($this[$key]) : $default; } public function has($key) { return isset($this[$key]); } public function keys() { return array_keys($this->getArrayCopy()); } }