# give/4.16.8.1/src/TestData/Framework/Provider/RandomAmount.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.8.1. 22 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.8.1/code/src/TestData/Framework/Provider/RandomAmount.php
- Raw: https://pluginprobe.com/plugins/give/4.16.8.1/raw/src/TestData/Framework/Provider/RandomAmount.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.8.1/code/src/TestData/Framework/Provider/RandomAmount.php#L10-L20`.

```php
<?php

namespace Give\TestData\Framework\Provider;

class RandomAmount extends RandomProvider
{

    /** @var array [ int, ... ] */
    protected $amounts = [
        10,
        25,
        50,
        100,
        250,
    ];

    public function __invoke()
    {
        return $this->faker->randomElement($this->amounts);
    }
}

```
