Example #1
0
 public function setUtf8StringWrapper(StringWrapperInterface $utf8StringWrapper)
 {
     if (!$utf8StringWrapper->isSupported('UTF-8')) {
         throw new Exception\InvalidArgumentException("The string wrapper needs to support UTF-8 character encoding");
     }
     $this->utf8StringWrapper = $utf8StringWrapper;
 }