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:
Leonid Nikitin 2023-07-09 19:39:37 +06:00
parent 524bf569e3
commit 79112680bd
Signed by: kor-elf
GPG Key ID: 7DE8F80C5CEC2C0D

View File

@ -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);
}