1
0
mirror of https://github.com/flarum/core.git synced 2025-07-25 18:51:40 +02:00

Pushing latest stuff

This commit is contained in:
Matthew Kilgore
2021-12-28 20:45:22 -05:00
parent 05aa62f70c
commit 853926ce0b
80 changed files with 7103 additions and 16105 deletions

View File

@@ -0,0 +1,92 @@
<?php
declare(strict_types=1);
namespace Flarum\PHPStan\Reflection;
use PHPStan\Reflection\ClassMemberReflection;
use PHPStan\Reflection\ClassReflection;
use PHPStan\Reflection\MethodReflection;
use PHPStan\TrinaryLogic;
use PHPStan\Type\Type;
class StaticMethodReflection implements MethodReflection
{
/** @var MethodReflection */
private $methodReflection;
public function __construct(MethodReflection $methodReflection)
{
$this->methodReflection = $methodReflection;
}
public function getDeclaringClass(): ClassReflection
{
return $this->methodReflection->getDeclaringClass();
}
public function isStatic(): bool
{
return true;
}
public function isPrivate(): bool
{
return $this->methodReflection->isPrivate();
}
public function isPublic(): bool
{
return $this->methodReflection->isPublic();
}
public function getDocComment(): ?string
{
return $this->methodReflection->getDocComment();
}
public function getName(): string
{
return $this->methodReflection->getName();
}
public function getPrototype(): ClassMemberReflection
{
return $this->methodReflection->getPrototype();
}
public function getVariants(): array
{
return $this->methodReflection->getVariants();
}
public function isDeprecated(): TrinaryLogic
{
return $this->methodReflection->isDeprecated();
}
public function getDeprecatedDescription(): ?string
{
return $this->methodReflection->getDeprecatedDescription();
}
public function isFinal(): TrinaryLogic
{
return $this->methodReflection->isFinal();
}
public function isInternal(): TrinaryLogic
{
return $this->methodReflection->isInternal();
}
public function getThrowType(): ?Type
{
return $this->methodReflection->getThrowType();
}
public function hasSideEffects(): TrinaryLogic
{
return $this->methodReflection->hasSideEffects();
}
}