The specification on types in DocBlocks (PSR-5) describes various keywords and special constructs but also how to statically resolve the partial name of a Class into a Fully Qualified Class Name (FQCN). PSR-5 also introduces an additional way to describe deeper elements than Classes, Interfaces and Traits called the Fully Qualified Structural Element Name (FQSEN). Using this it is possible to refer to methods, properties and class constants but also functions and global constants. This package provides two Resolvers that are capable of returning a series of Value Object for given expression while resolving any partial class names, and returning an FQSEN object after resolving any partial Structural Element Names into Fully Qualified Structural Element names. Consult the examples folder and check which type of action that your want to accomplish.

Features

  • Resolve a Type
  • Resolve a Fully Qualified Structural Element Name
  • Resolve Constant expressions
  • Resolve nullable types
  • Resolve an FQSEN
  • Resolve Class constant expressions

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow TypeResolver

TypeResolver Web Site

Other Useful Business Software
Run your private office with the ONLYOFFICE Icon
Run your private office with the ONLYOFFICE

Secure office and productivity apps

A Comprehensive Alternative to Office 365 for Business
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of TypeResolver!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Libraries

Registered

2021-07-06