Image
in package
Image Hydrator
Common properties:
- id
- shortcode
- display_url
- media_preview
- is_video
- accessibility_caption
- taken_at_timestamp
- location
- thumbnail_src
$transport = (new JsonTransport())
->setUsername($username);
$imageData = $transport->getUserData();
$user = (new User())
->hydrate($imageData);
echo $user->getImages()[0]->getAttribute('shortcode');
Table of Contents
- $stack : mixed
- getAttribute() : mixed
- getDimensions() : mixed
- getThumbnail() : mixed
- hydrate() : mixed
Properties
$stack
private
mixed
$stack
Methods
getAttribute()
public
getAttribute(mixed $key) : mixed
Parameters
- $key : mixed
Return values
mixed —getDimensions()
public
getDimensions() : mixed
Return values
mixed —getThumbnail()
public
getThumbnail([mixed $width = 480 ]) : mixed
Parameters
- $width : mixed = 480
Return values
mixed —hydrate()
public
hydrate(mixed $data) : mixed
Parameters
- $data : mixed