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:
2023-07-09 19:39:37 +06:00
parent 524bf569e3
commit 79112680bd

View File

@@ -19,17 +19,17 @@ final class Input extends Form
return $this->name; return $this->name;
} }
protected function getTitle(): string private function getTitle(): string
{ {
return Str::ucfirst($this->title); return Str::ucfirst($this->title);
} }
protected function getType(): string private function getType(): string
{ {
return $this->type; return $this->type;
} }
protected function getValue(): string private function getValue(): string
{ {
return (string) old($this->getRequestName(), $this->value); return (string) old($this->getRequestName(), $this->value);
} }