public static function create(string $value): TagValue
    {
        if (strlen($value) > self::MAX_LENGTH || !self::isPrintable($value)) {
            throw new \Exception("Invalid TagValue: $value");
        }
        return new self($value);
    }
public static function create(string $value): TagValue
    {
        if (strlen($value) > self::MAX_LENGTH || !self::isPrintable($value)) {
            throw new \Exception("Invalid TagValue: $value");
        }
        return new self($value);
    }
public static function create ( string $ value ) : TagValue { if ( strlen ( $ value ) > self :: MAX_LENGTH || ! self :: isPrintable ( $ value ) ) { throw new \ Exception ( "Invalid TagValue: $value" ) ; } return new self ( $ value ) ; }
Constructs a TagValue with the given string payload.

The name must meet the following requirements:
<ol>
<li>It cannot be longer than TagValue::MAX_LENGTH
<li>It can only contain printable ASCII characters.
</ol>

@param string $value the value payload.
@return TagValue
@throws \Exception if name is not valid.
Constructs a TagValue with the given string payload .