Updated the visibility of getTitle, getType, and getValue methods in the Input class from protected to private. This was done to limit and control access to these methods to only within the class, enhancing encapsulation and improving security.
This commit is contained in:
parent
524bf569e3
commit
79112680bd
@ -19,17 +19,17 @@ final class Input extends Form
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
protected function getTitle(): string
|
||||
private function getTitle(): string
|
||||
{
|
||||
return Str::ucfirst($this->title);
|
||||
}
|
||||
|
||||
protected function getType(): string
|
||||
private function getType(): string
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
protected function getValue(): string
|
||||
private function getValue(): string
|
||||
{
|
||||
return (string) old($this->getRequestName(), $this->value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user