Documentation

User
in package

User Hydrator

Common properties:

  • biography
  • external_url
  • full_name
  • id
  • is_business_account
  • is_joined_recently
  • is_verified
  • profile_pic_url
  • profile_pic_url_hd
  • username
 $transport = (new JsonTransport())
     ->setUsername($username);
 $imageData = $transport->getUserData();
 $user = (new User())
     ->hydrate($imageData);
 echo $user->getAttribute('profile_pic_url');

Table of Contents

$images  : mixed
$stack  : mixed
getAttribute()  : mixed
getImages()  : mixed
hydrate()  : mixed

Properties

$images

private mixed $images = []

$stack

private mixed $stack

Methods

getAttribute()

public getAttribute(mixed $key) : mixed
Parameters
$key : mixed
Return values
mixed

getImages()

public getImages() : mixed
Return values
mixed

hydrate()

public hydrate(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

Search results