/** * Set the string wrapper to detect the string length * * @param StringWrapper $stringWrapper * @return StringLength */ public function setStringWrapper(StringWrapper $stringWrapper) { $stringWrapper->setEncoding($this->getEncoding()); $this->stringWrapper = $stringWrapper; }