| @@ 216-228 (lines=13) @@ | ||
| 213 | ||
| 214 | $setter = 'Set' . ucfirst($property); |
|
| 215 | ||
| 216 | if ( |
|
| 217 | $refreshGetters && |
|
| 218 | $classReflection->hasMethod($getter) && |
|
| 219 | ( |
|
| 220 | $methodReflection = new ReflectionMethod( |
|
| 221 | static::class, |
|
| 222 | $getter |
|
| 223 | ) |
|
| 224 | )->isPublic() && |
|
| 225 | false === $methodReflection->isStatic() |
|
| 226 | ) { |
|
| 227 | self::$publicGetters[static::class][] = $property; |
|
| 228 | } |
|
| 229 | ||
| 230 | if ( |
|
| 231 | $refreshSetters && |
|
| @@ 230-242 (lines=13) @@ | ||
| 227 | self::$publicGetters[static::class][] = $property; |
|
| 228 | } |
|
| 229 | ||
| 230 | if ( |
|
| 231 | $refreshSetters && |
|
| 232 | $classReflection->hasMethod($setter) && |
|
| 233 | ( |
|
| 234 | $methodReflection = new ReflectionMethod( |
|
| 235 | static::class, |
|
| 236 | $setter |
|
| 237 | ) |
|
| 238 | )->isPublic() && |
|
| 239 | false === $methodReflection->isStatic() |
|
| 240 | ) { |
|
| 241 | self::$publicSetters[static::class][] = $property; |
|
| 242 | } |
|
| 243 | } |
|
| 244 | } |
|
| 245 | } |
|