Prooph\EventStore\Stream\StreamName::__construct PHP Method

__construct() public method

public __construct ( $name )
$name
    public function __construct($name)
    {
        Assertion::string($name, 'StreamName must be a string');
        Assertion::notEmpty($name, 'StreamName must not be empty');
        Assertion::maxLength($name, 200, 'StreamName should not be longer than 200 chars');
        $this->name = $name;
    }