# give/4.16.9/src/Framework/FieldsAPI/Concerns/AllowMultiple.php

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

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/Framework/FieldsAPI/Concerns/AllowMultiple.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/Framework/FieldsAPI/Concerns/AllowMultiple.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/Framework/FieldsAPI/Concerns/AllowMultiple.php#L10-L20`.

```php
<?php

namespace Give\Framework\FieldsAPI\Concerns;

trait AllowMultiple
{

    /** @var bool */
    protected $allowMultiple = false;

    /**
     * Set whether the field allows multiple or not.
     *
     * @param bool $allowMultiple
     *
     * @return $this
     */
    public function allowMultiple($allowMultiple = true)
    {
        $this->allowMultiple = $allowMultiple;

        return $this;
    }

    /**
     * Access whether or not the field allows multiple.
     *
     * @return bool
     */
    public function getAllowMultiple()
    {
        return $this->allowMultiple;
    }
}

```
