src/Types/Str.php
public static function InitWith($value) {
        $instance = new Str();
        $instance->value = $value;
        $instance->IsValid();
        return $instance;
    }
public static function InitWith($value) {
        $instance = new Str();
        $instance->value = $value;
        $instance->IsValid();
        return $instance;
    }
Create an instance of the class, sets the value property and returns the object.
@param string $value
@return \Puzzlout\Objects\Str
@throws \Exception