package and depencies

This commit is contained in:
RafficMohammed
2023-01-08 02:57:24 +05:30
parent d5332eb421
commit 1d54b8bc7f
4309 changed files with 193331 additions and 172289 deletions

View File

@@ -57,10 +57,8 @@ abstract class FormField
/**
* Returns the label tag associated to the field or null if none.
*
* @return \DOMElement|null
*/
public function getLabel()
public function getLabel(): ?\DOMElement
{
$xpath = new \DOMXPath($this->node->ownerDocument);
@@ -78,20 +76,16 @@ abstract class FormField
/**
* Returns the name of the field.
*
* @return string
*/
public function getName()
public function getName(): string
{
return $this->name;
}
/**
* Gets the value of the field.
*
* @return string|array|null
*/
public function getValue()
public function getValue(): string|array|null
{
return $this->value;
}
@@ -106,20 +100,16 @@ abstract class FormField
/**
* Returns true if the field should be included in the submitted values.
*
* @return bool
*/
public function hasValue()
public function hasValue(): bool
{
return true;
}
/**
* Check if the current field is disabled.
*
* @return bool
*/
public function isDisabled()
public function isDisabled(): bool
{
return $this->node->hasAttribute('disabled');
}