public function create(
        string $title,
        string $description,
        $amount,
        array $optional = []
    ): Response {
        $body = \array_merge(\compact('title', 'description', 'amount'), $optional);

        list($headers, $stream) = $this->prepareMultipartRequestPayloads([], $body);

        return $this->stream('POST', 'open_collections', $headers, $body);
    }
public function create(
        string $title,
        string $description,
        $amount,
        array $optional = []
    ): Response {
        $body = \array_merge(\compact('title', 'description', 'amount'), $optional);

        list($headers, $stream) = $this->prepareMultipartRequestPayloads([], $body);

        return $this->stream('POST', 'open_collections', $headers, $body);
    }
public function create ( string $ title , string $ description , $ amount , array $ optional = [ ] ) : Response { $ body = \ array_merge ( \ compact ( 'title' , 'description' , 'amount' ) , $ optional ) ; list ( $ headers , $ stream ) = $ this -> prepareMultipartRequestPayloads ( [ ] , $ body ) ; return $ this -> stream ( 'POST' , 'open_collections' , $ headers , $ body ) ; }
Create a new open collection.

@param  string  $title
@param  string  $description
@param  \Money\Money|\Duit\MYR|int  $amount
@param  array  $optional

@return \Laravie\Codex\Contracts\Response
Create a new open collection .