Skip to content

Commit

Permalink
Add needed method to FormatterOptions and typo fixes (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman authored Oct 18, 2024
1 parent 7a611b0 commit 4d4c601
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Options/FormatterOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -369,7 +374,7 @@ public function setConfigurationData($configurationData)
*
* @param string $key
* @param mixed $value
* @return FormetterOptions
* @return FormatterOptions
*/
protected function setConfigurationValue($key, $value)
{
Expand All @@ -383,7 +388,7 @@ protected function setConfigurationValue($key, $value)
*
* @param string $key
* @param mixed $value
* @return FormetterOptions
* @return FormatterOptions
*/
public function setConfigurationDefault($key, $value)
{
Expand Down

0 comments on commit 4d4c601

Please sign in to comment.