HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/ste.komma.pro/app/C4/Requests/PutSignUp.php
<?php


namespace App\C4\Requests;


class PutSignUp
{

    const PATH = 'put_inschrijving';

    public string $gender = '';
    public string $last_name;
    public string $first_name = '';
    public string $phone;
    public string $email;
    public string $organisation = '';
    public string $trainingId;
    public string $form_message = '';
    public bool $newsletter = false;

    /**
     * Convert attributes for request
     *
     * @return array
     */
    public function getParams(): array
    {

        return [
            'geslacht' => $this->gender,
            'achternaam' => $this->last_name,
            'voorletters' => $this->first_name,
            'telefoonnummer' => $this->phone,
            'emailadres' => $this->email,
            'organisatie' => $this->organisation,
            'uitvoering_id' => $this->trainingId,
            'opmerkingen' => $this->form_message,
            'inschrijven_nieuwsbrief' => $this->newsletter ? 1 : 0,
        ];
    }

    /**
     * Fill request into class
     *
     * @param  array  $inputs
     */
    public function fill(array $inputs)
    {
        foreach ($inputs as $key => $value) {
            $this->{$key} = $value;
        }
    }
}