return $this->
getReflectionMember($objectOrClassName)->
isPrivate();
} /**
* Returns the reflection instance for accessing the member's value.
*/
public function getReflectionMember(object|string
$objectOrClassName): \ReflectionMethod|\ReflectionProperty
{ $className = \
is_string($objectOrClassName) ?
$objectOrClassName :
$objectOrClassName::
class;
if (!
isset($this->reflMember
[$className])) { $this->reflMember
[$className] =
$this->
newReflectionMember($objectOrClassName);
} return $this->reflMember
[$className];
} /**
* Creates a new reflection instance for accessing the member's value.
*/
abstract protected function newReflectionMember(object|string
$objectOrClassName): \ReflectionMethod|\ReflectionProperty;
private function checkConstraint(Constraint
$constraint): void
{