# give/4.18.0/src/Donations/Factories/DonationNoteFactory.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 21 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/Donations/Factories/DonationNoteFactory.php
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/Donations/Factories/DonationNoteFactory.php
- Modified: 2022-10-20T21:34:00+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.18.0/code/src/Donations/Factories/DonationNoteFactory.php#L10-L20`.

```php
<?php

namespace Give\Donations\Factories;

use Give\Framework\Models\Factories\ModelFactory;

class DonationNoteFactory extends ModelFactory
{
    /**
     * @since 2.23.0 add array return type
     * @since 2.21.0
     */
    public function definition(): array
    {
        return [
            'donationId' => 1,
            'content' => $this->faker->text
        ];
    }
}

```
