|
| 1 | +<?php declare(strict_types = 1); |
| 2 | + |
| 3 | +namespace PHPStan\Reflection\Php; |
| 4 | + |
| 5 | +use PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass; |
| 6 | +use PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum; |
| 7 | +use PHPStan\BetterReflection\Reflection\Adapter\ReflectionIntersectionType; |
| 8 | +use PHPStan\BetterReflection\Reflection\Adapter\ReflectionMethod; |
| 9 | +use PHPStan\BetterReflection\Reflection\Adapter\ReflectionNamedType; |
| 10 | +use PHPStan\BetterReflection\Reflection\Adapter\ReflectionParameter; |
| 11 | +use PHPStan\BetterReflection\Reflection\Adapter\ReflectionUnionType; |
| 12 | +use PHPStan\TrinaryLogic; |
| 13 | + |
| 14 | +/** |
| 15 | + * @deprecated |
| 16 | + */ |
| 17 | +interface BuiltinMethodReflection |
| 18 | +{ |
| 19 | + |
| 20 | + public function getName(): string; |
| 21 | + |
| 22 | + public function getReflection(): ?ReflectionMethod; |
| 23 | + |
| 24 | + public function getFileName(): ?string; |
| 25 | + |
| 26 | + public function getDeclaringClass(): ReflectionClass|ReflectionEnum; |
| 27 | + |
| 28 | + public function getStartLine(): ?int; |
| 29 | + |
| 30 | + public function getEndLine(): ?int; |
| 31 | + |
| 32 | + public function getDocComment(): ?string; |
| 33 | + |
| 34 | + public function isStatic(): bool; |
| 35 | + |
| 36 | + public function isPrivate(): bool; |
| 37 | + |
| 38 | + public function isPublic(): bool; |
| 39 | + |
| 40 | + public function getPrototype(): self; |
| 41 | + |
| 42 | + public function isDeprecated(): TrinaryLogic; |
| 43 | + |
| 44 | + public function isVariadic(): bool; |
| 45 | + |
| 46 | + public function getReturnType(): ReflectionIntersectionType|ReflectionNamedType|ReflectionUnionType|null; |
| 47 | + |
| 48 | + public function getTentativeReturnType(): ReflectionIntersectionType|ReflectionNamedType|ReflectionUnionType|null; |
| 49 | + |
| 50 | + /** |
| 51 | + * @return ReflectionParameter[] |
| 52 | + */ |
| 53 | + public function getParameters(): array; |
| 54 | + |
| 55 | + public function isFinal(): bool; |
| 56 | + |
| 57 | + public function isInternal(): bool; |
| 58 | + |
| 59 | + public function isAbstract(): bool; |
| 60 | + |
| 61 | + public function returnsByReference(): TrinaryLogic; |
| 62 | + |
| 63 | +} |
0 commit comments