invisnik/laravel-steam-auth

View on GitHub
src/SteamInfo.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Invisnik\LaravelSteamAuth;

use Illuminate\Support\Fluent;

class SteamInfo extends Fluent
{
    /**
     * {@inheritdoc}
     */
    public function __construct($data)
    {
        $steamID = $data['steamid'] ?? null;
        unset($data['steamid']);

        parent::__construct($data);

        $this->attributes['steamID64'] = $steamID;
    }
}