PHPStan\Reflection\Php\PhpClassReflectionExtension::hasProperty PHP Method

hasProperty() public method

public hasProperty ( ClassReflection $classReflection, string $propertyName ) : boolean
$classReflection PHPStan\Reflection\ClassReflection
$propertyName string
return boolean
    public function hasProperty(ClassReflection $classReflection, string $propertyName) : bool
    {
        return $classReflection->getNativeReflection()->hasProperty($propertyName);
    }