Page MenuHomeDevCentral

WIP: describe property type
DraftPublic

Authored by dereckson on Sun, Nov 9, 20:48.
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
None
Summary

One of the main use case is to add lightweight ORM logic to Keruald Database
and allow to infer from a class property the proper way to inject a variable
in the query.

Use case is to build an ORM with escape logic or NULL use could match the PHP propert

Test Plan
  • TODO: Write unit tests
  • TODO: Check nullable types behavior in hasType / getType / getTypes / getFullyDescribedType
  • TODO: Validate expectation a ?int property would be considered as int|null

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Errors
SeverityLocationCodeMessage
Erroromnitools/src/Reflection/CodeClass.php:55PHPCS.E.Generic.CodeAnalysis.EmptyStatement.DetectedCatchGeneric.CodeAnalysis.EmptyStatement.DetectedCatch
Erroromnitools/src/Reflection/CodeProperty.php:33PHPCS.E.Generic.CodeAnalysis.EmptyStatement.DetectedCatchGeneric.CodeAnalysis.EmptyStatement.DetectedCatch
Unit
Tests Passed
Branch
reflection-property
Build Status
Buildable 6163
Build 6447: arc lint + arc unit