summaryrefslogtreecommitdiff
path: root/src/Form.php
blob: 62527aa5212ba8d196c2a0520e819c24094217c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

namespace FlatFileForms;

class Form
{
  public string $name;

  public function __construct(
    public string $path,
  )
  {
    $this->name = basename($path);
  }

  public function getFields(mixed $page = null)
  {
    $builder = new Builder($this->path);

    return $builder->buildFields($page);
  }
}