for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created for IG Client.
* User: jakim <[email protected]>
* Date: 20.04.2018
*/
namespace Jakim\Mapper;
use Jakim\Base\Mapper;
use Jakim\Contract\MapperInterface;
use Jakim\Model\Account;
class AccountInfo extends Mapper implements MapperInterface
{
* Attributes map.
*
* @return array
protected function map(): array
return [
Account::class => [
'envelope' => 'user',
'item' => [
'biography' => 'biography',
'externalUrl' => 'external_url',
'followedBy' => 'follower_count',
'follows' => 'following_count',
'fullName' => 'full_name',
'id' => 'pk',
'isPrivate' => 'is_private',
'profilePicUrl' => 'hd_profile_pic_url_info.url',
'username' => 'username',
'media' => 'media_count',
],
];
}