# give/4.16.9/src/TestData/Factories/DonorFactory.php

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

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/TestData/Factories/DonorFactory.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/TestData/Factories/DonorFactory.php
- Modified: 2021-11-23T23:55:18+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/TestData/Factories/DonorFactory.php#L10-L20`.

```php
<?php

namespace Give\TestData\Factories;

use Give\TestData\Framework\Factory;

/**
 * Class DonorFactory
 * @package Give\TestData\Factories
 */
class DonorFactory extends Factory
{

    /**
     * Donor definition
     *
     * @since 1.0.0
     * @return array
     */
    public function definition()
    {
        return [
            'first_name' => $this->faker->firstName(),
            'last_name' => $this->faker->lastName(),
            'email' => $this->faker->safeEmail(),
            'date_created' => $this->faker->dateTimeThisYear()->format('Y-m-d H:i:s'),
        ];
    }
}

```
