bootdesk/chat-sdk

Attachment
in package

Table of Contents

Properties

$address  : string|null
$fetchData  : callable(Attachment): StreamInterface|null
$fetchMetadata  : array<string|int, mixed>|null
$height  : int|null
$lat  : float|null
$lng  : float|null
$mimeType  : string|null
$name  : string|null
$size  : int|null
$type  : string
$url  : string|null
$width  : int|null

Methods

__construct()  : mixed
__serialize()  : array<string|int, mixed>
__unserialize()  : void
isDataUrl()  : bool
location()  : self
read()  : StreamInterface|null
toArray()  : array<string|int, mixed>
withFetchOptions()  : self

Properties

$address read-only

public string|null $address = null

$fetchMetadata read-only

public array<string|int, mixed>|null $fetchMetadata = null

$height read-only

public int|null $height = null

$mimeType read-only

public string|null $mimeType = null

Methods

__construct()

public __construct(string $type[, string|null $url = null ][, string|null $name = null ][, string|null $mimeType = null ][, int|null $size = null ][, int|null $width = null ][, int|null $height = null ][, mixed $fetchData = null ][, array<string|int, mixed>|null $fetchMetadata = null ][, float|null $lat = null ][, float|null $lng = null ][, string|null $address = null ]) : mixed
Parameters
$type : string
$url : string|null = null
$name : string|null = null
$mimeType : string|null = null
$size : int|null = null
$width : int|null = null
$height : int|null = null
$fetchData : mixed = null
$fetchMetadata : array<string|int, mixed>|null = null
$lat : float|null = null
$lng : float|null = null
$address : string|null = null

__serialize()

public __serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

__unserialize()

public __unserialize(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>

isDataUrl()

public isDataUrl() : bool
Return values
bool

location()

public static location(float $lat, float $lng[, string|null $name = null ][, string|null $address = null ]) : self
Parameters
$lat : float
$lng : float
$name : string|null = null
$address : string|null = null
Return values
self

read()

public read() : StreamInterface|null
Return values
StreamInterface|null

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

withFetchOptions()

public withFetchOptions(callable(Attachment): StreamInterface $fetchData[, array<string|int, mixed>|null $fetchMetadata = null ]) : self
Parameters
$fetchData : callable(Attachment): StreamInterface
$fetchMetadata : array<string|int, mixed>|null = null
Return values
self
On this page

Search results