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 applications fast and securely in a fully managed environment Icon
Run applications fast and securely in a fully managed environment

Cloud Run is a fully-managed compute platform that lets you run your code in a container directly on top of scalable infrastructure.

Run frontend and backend services, batch jobs, deploy websites and applications, and queue processing workloads without the need to manage infrastructure.
Try for free
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