PHP TypeLang Help

Null Reader

This reader returns an empty metadata object containing only the required class name.

use TypeLang\Mapper\Mapper; use TypeLang\Mapper\Platform\StandardPlatform; use TypeLang\Mapper\Mapping\Reader\NullReader; $mapper = new Mapper( [[[platform: new StandardPlatform(|standard-platform.html]]] meta: new NullReader(), ), );

The "class name" will be equivalent to the one specified:

namespace App\Example; class ExampleClassName { public string $example; }

When using this reader, the class name will be read as:

object(TypeLang\Mapper\Mapping\Metadata\ClassInfo) { +name: "App\\Example\\ExampleClassName" +properties: [] // ...etc }

No further information about the class will be specified (i.e. there will be no properties or other information in the metadata.

06 November 2025