GuzzleHttp\Psr7\MultipartStream::getBoundary PHP Метод

getBoundary() публичный Метод

Get the boundary
public getBoundary ( ) : string
Результат string
    public function getBoundary()
    {
        return $this->boundary;
    }

Usage Example

Пример #1
0
 public function testCanCreateEmptyStream()
 {
     $b = new MultipartStream();
     $boundary = $b->getBoundary();
     $this->assertSame("--{$boundary}--\r\n", $b->getContents());
     $this->assertSame(strlen($boundary) + 6, $b->getSize());
 }
All Usage Examples Of GuzzleHttp\Psr7\MultipartStream::getBoundary