Test Failed
Pull Request — main (#21)
by Mohammad Hafijul
03:53
created

Form   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
3
namespace Hafijul233\Form\Facades;
4
5
use Closure;
6
use Illuminate\Support\Facades\Facade;
7
use Illuminate\Support\HtmlString;
8
use Illuminate\Support\ViewErrorBag;
9
10
/**
11
 * Class Form
12
 *
13
 * @method static HtmlString model(mixed $model, array $options = [])
14
 * @method static HtmlString open(array $options = [])
15
 * @method static HtmlString hidden(string $name, mixed $value = null, array $options = [])
16
 * @method static HtmlString input(string $type, string $name, mixed $value = null, array $options = [])
17
 * @method static HtmlString getIdAttribute(string $name, array $attributes)
18
 * @method static HtmlString getValueAttribute(string $name, string $value = null)
19
 * @method static HtmlString token()
20
 * @method static HtmlString close()
21
 * @method static HtmlString label(string $name, string $title = null, bool $required = false, array $options = [], bool $escape_html = true)
22
 * @method static HtmlString text(string $name, string $value = null, array $options = [])
23
 * @method static HtmlString password(string $name, array $options = [])
24
 * @method static HtmlString range(string $name, string $value = null, array $options = [])
25
 * @method static HtmlString search(string $name, string $value = null, array $options = [])
26
 * @method static HtmlString email(string $name, string $value = null, array $options = [])
27
 * @method static HtmlString tel(string $name, string $value = null, array $options = [])
28
 * @method static HtmlString url(string $name, string $value = null, array $options = [])
29
 * @method static HtmlString number(string $name, string $value = null, array $options = [])
30
 * @method static HtmlString textarea(string $name, string $value = null, array $options = [])
31
 * @method static HtmlString file(string $name, array $options = [])
32
 * @method static HtmlString date(string $name, string $value = null, array $options = [])
33
 * @method static HtmlString error(string $name, bool $all = false, array $options = [])
34
 * @method static HtmlString datetime(string $name, string $value = null, array $options = [])
35
 * @method static HtmlString datetimeLocal(string $name, string $value = null, array $options = [])
36
 * @method static HtmlString time(string $name, string $value = null, array $options = [])
37
 * @method static HtmlString week(string $name, string $value = null, array $options = [])
38
 * @method static HtmlString selectRange(string $name, string $begin, string $end, string $selected = null, array $options = [])
39
 * @method static HtmlString select(string $name, array $list = [], string $selected = null, array $selectAttributes = [], array $optionsAttributes = [], array $optgroupsAttributes = [])
40
 * @method static HtmlString selectYear(string $name, string $begin, string $end, string $selected = null, array $options = [])
41
 * @method static HtmlString selectMonth(string $name, string $selected = null, string $format = '%B', array $options = [])
42
 * @method static HtmlString checkbox(string $name, mixed $value = 1, bool $checked = null, array $options = [])
43
 * @method static HtmlString radio(string $name, mixed $value = 1, bool $checked = null, array $options = [])
44
 * @method static HtmlString reset(string $value, array $attributes = [])
45
 * @method static HtmlString image(string $url, string $name = null, array $attributes = [])
46
 * @method static HtmlString month(string $name, string $value = null, array $options = [])
47
 * @method static HtmlString color(string $name, string $value = null, array $options = [])
48
 * @method static HtmlString submit(string $name = 'submit', string $value = null, bool $button = false, array $options = [])
49
 * @method static HtmlString button(string $value = null, array $options = [])
50
 * @method static HtmlString datalist(string $id, array $list = [])
51
 * @method static HtmlString component(string $name, string $view, array $attributes)
52
 * @method static HtmlString macro(string $name, Closure $function)
53
 *
54
 * // macros
55
 * @method static HtmlString  hLabel(string $name, string $title, bool $required = false, array $options = ['col_size' => 2])
56
 * @method static HtmlString  fLabel(string $name, string $title, bool $required = false, array $options = ['col_size' => 2])
57
 *
58
 * @see \Hafijul233\Form\Builders\FormBuilder
59
 */
60
class Form extends Facade
61
{
62
    /**
63
     * Get the registered name of the component.
64
     *
65
     * @return string
66
     */
67
    protected static function getFacadeAccessor(): string
68
    {
69
        return 'form';
70
    }
71
}
72