*/ final class HasOffsetTypeMapper implements TypeMapperInterface { public function getNodeClass() : string { return HasOffsetType::class; } /** * @param HasOffsetType $type */ public function mapToPHPStanPhpDocTypeNode(Type $type) : TypeNode { return $type->toPhpDocNode(); } /** * @param HasOffsetType $type */ public function mapToPhpParserNode(Type $type, string $typeKind) : ?Node { return new Identifier('array'); } }