<?php

namespace DhlPolska\API\WebApi\Struct;

use DhlPolska\API\AuthDataInterface;

/**
 * AuthData structure.
 */
class AuthData implements AuthDataInterface {

	/**
	 * @var string
	 */
	private string $username;

	/**
	 * @var string
	 */
	private string $password;

	/**
	 * AuthData constructor.
	 *
	 * @param string $username
	 * @param string $password
	 */
	public function __construct( string $username, string $password ) {
		$this->username = $username;
		$this->password = $password;
	}

	/**
	 * @return array
	 */
	public function jsonSerialize(): array {
		return [
			'username' => $this->username,
			'password' => $this->password,
		];
	}
}
