<?php namespace KzykHys\Text; class Text implements \Serializable { private $text; public function __construct($text = '') { $this->text = (string) $text; } public static function create($text = '') { return new static($text); } pub