_charList = $charList; } /** * Returns the charList option * * @return string|null */ public function getCharList() { return $this->_charList; } /** * Sets the charList option * * @param string|null $charList * @return Zend_Filter_StringTrim Provides a fluent interface */ public function setCharList($charList) { $this->_charList = $charList; return $this; } /** * Defined by Zend_Filter_Interface * * Returns the string $value with characters stripped from the beginning and end * * @param string $value * @return string */ public function filter($value) { if (null === $this->_charList) { return trim((string) $value); } else { return trim((string) $value, $this->_charList); } } }