Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fe8a46
commit 778308d
Showing
10 changed files
with
142 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace PHPStan\Reflection; | ||
|
||
/** | ||
* The purpose of this interface is to be able to | ||
* answer more questions about methods | ||
* without breaking backward compatibility | ||
* with existing MethodsClassReflectionExtension. | ||
* | ||
* Developers are meant to only use the MethodReflection | ||
* and its methods in their code. | ||
* | ||
* Methods on ExtendedMethodReflection are subject to change. | ||
*/ | ||
interface ExtendedMethodReflection extends MethodReflection | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace PHPStan\Reflection; | ||
|
||
use PHPStan\TrinaryLogic; | ||
use PHPStan\Type\Type; | ||
|
||
class WrappedExtendedMethodReflection implements ExtendedMethodReflection | ||
{ | ||
|
||
public function __construct(private MethodReflection $method) | ||
{ | ||
} | ||
|
||
public function getDeclaringClass(): ClassReflection | ||
{ | ||
return $this->method->getDeclaringClass(); | ||
} | ||
|
||
public function isStatic(): bool | ||
{ | ||
return $this->method->isStatic(); | ||
} | ||
|
||
public function isPrivate(): bool | ||
{ | ||
return $this->method->isPrivate(); | ||
} | ||
|
||
public function isPublic(): bool | ||
{ | ||
return $this->method->isPublic(); | ||
} | ||
|
||
public function getDocComment(): ?string | ||
{ | ||
return $this->method->getDocComment(); | ||
} | ||
|
||
public function getName(): string | ||
{ | ||
return $this->method->getName(); | ||
} | ||
|
||
public function getPrototype(): ClassMemberReflection | ||
{ | ||
return $this->method->getPrototype(); | ||
} | ||
|
||
public function getVariants(): array | ||
{ | ||
return $this->method->getVariants(); | ||
} | ||
|
||
public function isDeprecated(): TrinaryLogic | ||
{ | ||
return $this->method->isDeprecated(); | ||
} | ||
|
||
public function getDeprecatedDescription(): ?string | ||
{ | ||
return $this->method->getDeprecatedDescription(); | ||
} | ||
|
||
public function isFinal(): TrinaryLogic | ||
{ | ||
return $this->method->isFinal(); | ||
} | ||
|
||
public function isInternal(): TrinaryLogic | ||
{ | ||
return $this->method->isInternal(); | ||
} | ||
|
||
public function getThrowType(): ?Type | ||
{ | ||
return $this->method->getThrowType(); | ||
} | ||
|
||
public function hasSideEffects(): TrinaryLogic | ||
{ | ||
return $this->method->hasSideEffects(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters