*/ final class ParentStaticTypeMapper implements TypeMapperInterface { public function getNodeClass() : string { return ParentStaticType::class; } /** * @param ParentStaticType $type */ public function mapToPHPStanPhpDocTypeNode(Type $type) : TypeNode { return $type->toPhpDocNode(); } /** * @param ParentStaticType $type */ public function mapToPhpParserNode(Type $type, string $typeKind) : ?Node { return new Name(ObjectReference::PARENT); } }