<?php

namespace Signteer\Core\Model;

class SignupField
{
    private string $id;
    private string $type;
    private string $label;
    private bool $enabled;
    public const TYPE_TEXT = 'text';
    public const TYPE_EMAIL = 'email';
    public const TYPE_PHONE = 'phone';

    public function __construct(
        string $id,
        string $type,
        string $label,
        bool $enabled
    ) {
        $this->id = $id;
        $this->type = $type;
        $this->label = $label;
        $this->enabled = $enabled;
    }

    public function getId(): string
    {
        return $this->id;
    }

    public function getName(): string
    {
        return $this->getId();
    }

    public function getLabel(): string
    {
        return $this->label;
    }

    public function getType(): string
    {
        return $this->type;
    }

    public function isEnabled(): bool
    {
        return $this->enabled ? true : false;
    }
}
