JFormFieldInspector   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 86
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 86
rs 10
c 0
b 0
f 0
wmc 7
lcom 0
cbo 1

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __get() 0 11 2
A getInput() 0 4 1
A getForm() 0 4 1
A getId() 0 4 1
A getLabel() 0 4 1
A getTitle() 0 4 1
1
<?php
2
/**
3
 * @copyright  Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
4
 * @license    GNU General Public License version 2 or later; see LICENSE
5
 */
6
7
namespace Joomla\Form\Tests;
8
9
/**
10
 * JFormFieldInspector class.
11
 *
12
 * @since  1.0
13
 */
14
class JFormFieldInspector extends \Joomla\Form\Field
0 ignored issues
show
Deprecated Code introduced by
The class Joomla\Form\Field has been deprecated with message: The joomla/form package is deprecated

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
15
{
16
	/**
17
	 * Test...
18
	 *
19
	 * @param   string  $name  Element name
20
	 *
21
	 * @return  mixed
22
	 *
23
	 * @since   1.0
24
	 */
25
	public function __get($name)
26
	{
27
		if ($name == 'element')
28
		{
29
			return $this->element;
30
		}
31
		else
32
		{
33
			return parent::__get($name);
34
		}
35
	}
36
37
	/**
38
	 * Test...
39
	 *
40
	 * @return  void
41
	 *
42
	 * @since   1.0
43
	 */
44
	public function getInput()
45
	{
46
		return null;
47
	}
48
49
	/**
50
	 * Test...
51
	 *
52
	 * @return  \Joomla\Form\Form
53
	 *
54
	 * @since   1.0
55
	 */
56
	public function getForm()
57
	{
58
		return $this->form;
59
	}
60
61
	/**
62
	 * Test...
63
	 *
64
	 * @param   string  $fieldId    The field element id.
65
	 * @param   string  $fieldName  The field element name.
66
	 *
67
	 * @return  string  The id to be used for the field input tag.
68
	 *
69
	 * @since   1.0
70
	 */
71
	public function getId($fieldId, $fieldName)
72
	{
73
		return parent::getId($fieldId, $fieldName);
74
	}
75
76
	/**
77
	 * Test...
78
	 *
79
	 * @return  string
80
	 *
81
	 * @since   1.0
82
	 */
83
	public function getLabel()
84
	{
85
		return parent::getLabel();
86
	}
87
88
	/**
89
	 * Test...
90
	 *
91
	 * @return  string
92
	 *
93
	 * @since   1.0
94
	 */
95
	public function getTitle()
96
	{
97
		return parent::getTitle();
98
	}
99
}
100