# give/4.16.9/src/DonationForms/DataTransferObjects/AuthenticationData.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 34 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/DonationForms/DataTransferObjects/AuthenticationData.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/DonationForms/DataTransferObjects/AuthenticationData.php
- Modified: 2023-10-16T17:55:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/DonationForms/DataTransferObjects/AuthenticationData.php#L10-L20`.

```php
<?php

namespace Give\DonationForms\DataTransferObjects;

/**
 * @since 3.0.0
 */
class AuthenticationData
{
    /**
     * @var string
     */
    public $login;
    /**
     * @var string
     */
    public $password;

    /**
     * Convert data from request into DTO
     *
     * @since 3.0.0
     */
    public static function fromRequest(array $request): self
    {
        $self = new self();

        $self->login = $request['login'];
        $self->password = $request['password'];

        return $self;
    }
}

```
