mirror of
https://github.com/flarum/core.git
synced 2025-07-23 09:41:26 +02:00
* chore(deps): bump glob-parent in /extensions/emoji/js Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 3.1.0 to 5.1.2. - [Release notes](https://github.com/gulpjs/glob-parent/releases) - [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md) - [Commits](https://github.com/gulpjs/glob-parent/compare/v3.1.0...v5.1.2) --- updated-dependencies: - dependency-name: glob-parent dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Apply fixes from StyleCI [ci skip] [skip ci] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: StyleCI Bot <bot@styleci.io>
100 lines
2.2 KiB
PHP
100 lines
2.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* For detailed copyright and license information, please view the
|
|
* LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
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();
|
|
}
|
|
}
|