class FieldItemListMethodReflection
Allows field access to common methods.
Hierarchy
- class \mglaman\PHPStanDrupal\Reflection\FieldItemListMethodReflection implements \PHPStan\Reflection\MethodReflection
Expanded class hierarchy of FieldItemListMethodReflection
File
-
vendor/
mglaman/ phpstan-drupal/ src/ Reflection/ FieldItemListMethodReflection.php, line 15
Namespace
mglaman\PHPStanDrupal\ReflectionView source
class FieldItemListMethodReflection implements MethodReflection {
private ClassReflection $declaringClass;
private string $methodName;
public function __construct(ClassReflection $declaringClass, string $methodName) {
$this->declaringClass = $declaringClass;
$this->methodName = $methodName;
}
public function getDeclaringClass() : ClassReflection {
return $this->declaringClass;
}
public function isStatic() : bool {
return false;
}
public function isPrivate() : bool {
return false;
}
public function isPublic() : bool {
return true;
}
public function getDocComment() : ?string {
return null;
}
public function getName() : string {
return $this->methodName;
}
public function getPrototype() : ClassMemberReflection {
return $this;
}
/**
* @return \PHPStan\Reflection\ParametersAcceptor[]
*/
public function getVariants() : array {
return [
new TrivialParametersAcceptor(),
];
}
public function isDeprecated() : TrinaryLogic {
return TrinaryLogic::createNo();
}
public function getDeprecatedDescription() : ?string {
return '';
}
public function isFinal() : TrinaryLogic {
return TrinaryLogic::createYes();
}
public function isInternal() : TrinaryLogic {
return TrinaryLogic::createNo();
}
public function getThrowType() : ?Type {
return null;
}
public function hasSideEffects() : TrinaryLogic {
return TrinaryLogic::createNo();
}
}