forked from phpstan/phpstan-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClassMemberReflection.php
More file actions
35 lines (27 loc) · 940 Bytes
/
Copy pathClassMemberReflection.php
File metadata and controls
35 lines (27 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php declare(strict_types = 1);
namespace PHPStan\Reflection;
/**
* Base interface for all class members: properties, methods, and constants.
*
* Provides common metadata shared by all class members — their declaring class,
* visibility (public/private/protected), static-ness, and raw PHPDoc comment.
*
* This is the parent interface for PropertyReflection, MethodReflection, and
* (via ConstantReflection) ClassConstantReflection. Extension developers typically
* work with the more specific child interfaces.
*
* @api
* @api-do-not-implement
*/
interface ClassMemberReflection
{
/**
* For inherited members, this returns the original declaring class,
* not the class where the member was accessed.
*/
public function getDeclaringClass(): ClassReflection;
public function isStatic(): bool;
public function isPrivate(): bool;
public function isPublic(): bool;
public function getDocComment(): ?string;
}