Skip to content

Commit

Permalink
Remove unused methods hasOption and deselect
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Nov 11, 2022
1 parent 4dabde8 commit ee0b1bd
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/FormElement/SelectElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,30 +48,6 @@ public function getValue()
return $this->isMultiple() ? (array) $value : $value;
}

/**
* Whether an option with the specified value exists
*
* @param string|int $value
*
* @return bool
*/
public function hasOption($value): bool
{
return isset($this->options[$value]);
}

/**
* Deselect all values
*
* @return $this
*/
public function deselect(): self
{
$this->setValue(null);

return $this;
}

/**
* Get the option with specified value
*
Expand Down

0 comments on commit ee0b1bd

Please sign in to comment.