<?php

namespace FSPoster\App\SocialNetworks\Medium\Api;

class AuthData
{

    public string $accessToken;
    public string $refreshToken;
    public $accessTokenExpiresOn;
    public string $appClientId;
    public string $appClientSecret;

	public function setFromArray ( array $data )
	{
		foreach ( $data AS $key => $value )
		{
			if( property_exists( $this, $key ) )
				$this->$key = $value;
		}
	}

}