for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Pinterest PHP library.
*
* (c) Hans Ott <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.md.
* Source: https://github.com/hansott/pinterest-php
*/
namespace Pinterest\Objects;
/**
* This class represents a user.
* @author Hans Ott <[email protected]>
final class User implements BaseObject
{
* The required fields.
* @return array The required fields.
public static function fields()
return array(
'id',
'username',
'first_name',
'last_name',
'bio',
'created_at',
'counts',
'image',
'url',
);
}
* The user's id.
* @var string
* @required
public $id;
* The user's Pinterest username.
public $username;
* The user's first name.
public $first_name;
* The user's last name.
public $last_name;
* The user's bio.
public $bio;
* Timestamp of creation date.
* @var \DateTime
public $created_at;
* The stats/counts of the User (follower Pins, likes, boards).
* @var Stats
public $counts;
* The images that represents the user.
* This is determined by the request.
* @var array
public $image;
* The url to the object on pinterest.
public $url;