From 4d4c60168e5f78c9bc30b41c5b5c2ead80f01433 Mon Sep 17 00:00:00 2001 From: Moshe Weitzman Date: Fri, 18 Oct 2024 10:00:02 -0400 Subject: [PATCH] Add needed method to FormatterOptions and typo fixes (#112) --- src/Options/FormatterOptions.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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) {