1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Reflection;
4:
5: /** @api */
6: interface ClassMemberAccessAnswerer
7: {
8:
9: /**
10: * @phpstan-assert-if-true !null $this->getClassReflection()
11: */
12: public function isInClass(): bool;
13:
14: public function getClassReflection(): ?ClassReflection;
15:
16: public function canAccessProperty(PropertyReflection $propertyReflection): bool;
17:
18: public function canCallMethod(MethodReflection $methodReflection): bool;
19:
20: public function canAccessConstant(ConstantReflection $constantReflection): bool;
21:
22: }
23: