# give/4.16.9/src/Framework/FieldsAPI/Name.php

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

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/Framework/FieldsAPI/Name.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/Framework/FieldsAPI/Name.php
- Modified: 2023-10-16T17:55:46+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/Name.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Give\Framework\FieldsAPI;

class Name extends Group
{
    const TYPE = 'name';

    public static function make($name)
    {
        return parent::make($name)
            ->append(
                Text::make('firstName')
                    ->label('First Name')
                    ->required(),

                Text::make('lastName')
                    ->label('Last Name'),

                Select::make('honorific')
                    ->label('Honorific')
                    ->options('Mr.', 'Mrs.', 'Ms.')
            );
    }
}

```
