Skip to content

Commit 84ded9d

Browse files
committed
:octocat: finalize the internal methods
1 parent b5656ed commit 84ded9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/SettingsContainerAbstract.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ public function __isset(string $property):bool{
9999
/**
100100
* @internal Checks if a property is private
101101
*/
102-
protected function isPrivate(string $property):bool{
102+
final protected function isPrivate(string $property):bool{
103103
return (new ReflectionProperty($this, $property))->isPrivate();
104104
}
105105

106106
/**
107107
* @internal Checks if a property has a "set" hook
108108
*/
109-
protected function hasSetHook(string $property):bool{
109+
final protected function hasSetHook(string $property):bool{
110110

111111
if(PHP_VERSION_ID < 80400){
112112
return false;
@@ -118,7 +118,7 @@ protected function hasSetHook(string $property):bool{
118118
/**
119119
* @internal Checks if a property has a "get" hook
120120
*/
121-
protected function hasGetHook(string $property):bool{
121+
final protected function hasGetHook(string $property):bool{
122122

123123
if(PHP_VERSION_ID < 80400){
124124
return false;
@@ -132,7 +132,7 @@ protected function hasGetHook(string $property):bool{
132132
*
133133
* @see \chillerlan\Settings\Attributes\ThrowOnInvalidProperty
134134
*/
135-
protected function throwOnInvalidProperty():bool{
135+
final protected function throwOnInvalidProperty():bool{
136136

137137
$attributes = (new ReflectionObject($this))
138138
->getAttributes(ThrowOnInvalidProperty::class, ReflectionAttribute::IS_INSTANCEOF)

0 commit comments

Comments
 (0)