diff --git a/src/Options/FormatterOptions.php b/src/Options/FormatterOptions.php index a1c85a4..c753df2 100644 --- a/src/Options/FormatterOptions.php +++ b/src/Options/FormatterOptions.php @@ -8,7 +8,7 @@ use Consolidation\OutputFormatters\StructuredData\Xml\XmlSchemaInterface; /** - * FormetterOptions holds information that affects the way a formatter + * FormatterOptions holds information that affects the way a formatter * renders its output. * * There are three places where a formatter might get options from: @@ -143,6 +143,11 @@ public function setTableEmptyMessage($emptyMessage) return $this->setConfigurationValue(FormatterOptions::TABLE_EMPTY_MESSAGE, $emptyMessage); } + public function setTableDefaultFields($defaultTableFields) + { + return $this->setConfigurationValue(FormatterOptions::DEFAULT_TABLE_FIELDS, $defaultTableFields); + } + public function setDefaultStringField($defaultStringField) { return $this->setConfigurationValue(self::DEFAULT_STRING_FIELD, $defaultStringField); @@ -369,7 +374,7 @@ public function setConfigurationData($configurationData) * * @param string $key * @param mixed $value - * @return FormetterOptions + * @return FormatterOptions */ protected function setConfigurationValue($key, $value) { @@ -383,7 +388,7 @@ protected function setConfigurationValue($key, $value) * * @param string $key * @param mixed $value - * @return FormetterOptions + * @return FormatterOptions */ public function setConfigurationDefault($key, $value) {