Supports following PHP types:
TypeSignature::array('string'); // => 'string[]'
TypeSignature::number(); // => 'integer|float|double'
TypeSignature::union(TypeSignature::integer(), TypeSignature::string()); // => 'integer|string'
TypeSignature::intersection(\ArrayAccess::class, \Countable::class); // => 'ArrayAccess&Countable'
TypeSignature::optional(TypeSignature::string()); => 'string
- iterable
- resource