YoastSEO_Vendor\GuzzleHttp\Psr7
MultipartStream::__construct() public Yoast 1.0
{} Это метод класса: MultipartStream{}
Хуков нет.
Возвращает
null
. Null. Ничего.
Использование
$MultipartStream = new MultipartStream(); $MultipartStream->__construct( $elements, $boundary );
- $elements(массив)
- Array of associative arrays, each containing a required "name" key mapping to the form field, name, a required "contents" key mapping to a StreamInterface/resource/string, an optional "headers" associative array of custom headers, and an optional "filename" key mapping to a string to send as the filename in the part.
- $boundary(строка)
- You can optionally provide a specific boundary
Код MultipartStream::__construct() MultipartStream:: construct Yoast 16.1.1
public function __construct(array $elements = [], $boundary = null)
{
$this->boundary = $boundary ?: \sha1(\uniqid('', \true));
$this->stream = $this->createStream($elements);
}