From 79112680bd6c7423301336129f78340c3e2c38ac Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sun, 9 Jul 2023 19:39:37 +0600 Subject: [PATCH] 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. --- app/View/Components/Private/Forms/Input.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/View/Components/Private/Forms/Input.php b/app/View/Components/Private/Forms/Input.php index 2e3c0af..a1a0ee7 100644 --- a/app/View/Components/Private/Forms/Input.php +++ b/app/View/Components/Private/Forms/Input.php @@ -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); }