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

```php
<?php

namespace Give\TestData\Framework\Provider;

class RandomGoal extends RandomProvider
{

    /** @var array [ int, ... ] */
    protected $goals = [
        1000,
        2500,
        5000,
        10000,
        25000,
    ];

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

```
