Пример #1
0
 public static function factory(Utf8String $str)
 {
     return new self($str->toLowerCase()->trim()->valueOf());
 }
Пример #2
0
 /**
  * Factory method. This class should be instantiated
  * ONLY through this method
  *
  * @param Utf8String $Tags
  *
  * @internal param \Lampcms\of $object type Utf8string $Tags
  * @return object of this class
  */
 public static function factory(Utf8String $Tags)
 {
     $str = $Tags->toLowerCase()->trim()->valueOf();
     return new self($str);
 }