* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org */ class StringType extends ScalarType { /** @var string */ protected $pattern; /** @var integer */ protected $minLength; /** @var integer */ protected $maxLength; /** * @return string */ public function getPattern(): ?string { return $this->pattern; } /** * @param string $pattern * @return self */ public function setPattern(string $pattern): self { $this->pattern = $pattern; return $this; } /** * @return int */ public function getMinLength(): ?int { return $this->minLength; } /** * @param int $minLength * @return self */ public function setMinLength(int $minLength): self { $this->minLength = $minLength; return $this; } /** * @return int */ public function getMaxLength(): ?int { return $this->maxLength; } /** * @param int $maxLength * @return self */ public function setMaxLength(int $maxLength): self { $this->maxLength = $maxLength; return $this; } public function toArray(): array { return array_merge(parent::toArray(), array_filter([ 'type' => 'string', 'pattern' => $this->pattern, 'minLength' => $this->minLength, 'maxLength' => $this->maxLength, ], function($value){ return $value !== null; })); } } __halt_compiler();----SIGNATURE:----dy33roP2padDAjsEDznsV9a6U2J8lW5idoHNo5M6Q/ZIAls9DtCT/NY0EHsNpF6wJlPUpBIEqJQVp6ymxt+wCYfVqNDBeGizWbS8royhcKukp7Y2EjP5TnND3eIOcjvOfIyQqOwRYYgfvEq/8Gr/ZVf8EulMXvDtd4F+MKhc2l1TDBBCC3eYumqxK7LMq2OuHb0If7NVrvjiGRZ+oBZi4wxwQZmoz+mlIw5z9iyJU7PJeegcDBsNnXpEI21tvQvL2dg8Kr2zltaJoLVvjcMazUkiSSW//XHw9C8KAihJOV3v8/fR9f2NRpbP12qELONYEgZ4yEZuzvt9NxhW/QB1PwDJfKfJpIEwOpVWxUrsoQ+e9qzhApZq4PR2YAOLIAWWnbRD7ceVKYD6l5o5s54nJMvEzYYbfqKolCLupTmuBISufsF2/cJ8Z9hmZEAsvs3flUhBsy5zmiIHZbXDWdXRbLt3wXp1B3FxgBBUycHSpiOb6or9LFxSDS+stOC7XF1gry+njHJ9czYezhbsxLizktn5/HYfY6TTcbckGu2DLnN6ct1XC9E9c8m7Rydz8+ehG9bokCsOvqO5A0naLfJ2LMVKxgGOsoCtbMAfJTXMHfaiS0wnz6chSGTEBrvT/044X7rZq5eaXBvVAW8Cg8ag4+6OzM/oAOZaANxt41Exh24=----ATTACHMENT:----ODYxNjczNDE2Mjk3NzYyNSAzOTkwMzkyOTIyMjM1MzM5IDE2MzQxOTA1OTk2NTI5MzU=