Attachment
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
$address
read-only
public
string|null
$address
= null
$fetchData
public
callable(Attachment): StreamInterface|null
$fetchData
public
array<string|int, mixed>|null
$fetchMetadata
= null
$height
read-only
public
int|null
$height
= null
$lat
read-only
public
float|null
$lat
= null
$lng
read-only
public
float|null
$lng
= null
$mimeType
read-only
public
string|null
$mimeType
= null
$name
read-only
public
string|null
$name
= null
$size
read-only
public
int|null
$size
= null
$type
read-only
public
string
$type
$url
read-only
public
string|null
$url
= null
$width
read-only
public
int|null
$width
= null
__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
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
-
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
-