dhii / expression-renderer-abstract
Abstract functionality for objects that can render expressions.
Installs: 1 971
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: ^5.4 | ^7.0
- dhii/expression-interface: ^0.2
- dhii/expression-renderer-interface: ^0.1
- dhii/output-renderer-interface: ^0.2 | ^0.3
Requires (Dev)
- codeclimate/php-test-reporter: <=0.3.2
- dhii/data-container-interface: ^0.1
- dhii/php-cs-fixer-config: ^0.1
- dhii/stringable-interface: ^0.1
- phpunit/phpunit: ^4.8
- ptrofimov/xpmock: ^1.1
This package is auto-updated.
Last update: 2024-10-07 03:50:48 UTC
README
Details
Abstract functionality for objects that can render expressions.
Traits
RenderExpressionTrait
provides the basic functionality for reading an expression from a render context and passing it on to an abstracted render method.RenderExpressionAndTermsCapableTrait
provides functionality for rendering an expression's terms in sequence, then compiling those results into a final render. The provided_renderExpressionAndTerms()
method can be used to complementrenderExpression()
inRenderExpressionTrait
.DelegateRenderTermCapableTrait
provides functionality for rendering an expression or term by passing it onto a delegate renderer, via an abstract delegate renderer getter method. The provided_delegateRenderTerm()
method can be used to complementrenderExpressionTerm()
inRenderExpressionAndTermsCapableTrait
.GetTermTypeRendererContainerTrait
provides functionality for retrieving a renderer that corresponds to a term's type from a container instance. The provided_getTermTypeRenderer()
method can be used to complementgetTermDelegateRenderer
inDelegateRenderTermCapableTrait
.OperatorStringAwareTrait
provides awareness of an operator string via storage and retrieval methods.