| File: |
src/Contracts/Extensible.php |
| Role: |
Class source |
| Content type: |
text/plain |
| Description: |
Class source |
| Class: |
PHP Objects Extensions
Add functions to objects using another class |
| Author: |
By Axel Pardemann |
| Last change: |
Improve type checking
Cleanup code
Major refactor for better code maintainability
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
Fix meta files
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
wip
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
wip
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
wip
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
Refactor resolver
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
Refactor HandlesExtensionMethods trait
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
wip
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
wip
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
Add static extension methods
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
Allow the guard_extensions field to be bypassed
In the previous implementation if the guard_extensions field was set to true, all extension methods were guarded and there was no way to specifically not guard some extensions.
Now the default param value is null and if a boolean is given, the value trumps the global field.
Improve handling of methods
- Added a new guard param when registering guarded methods.
- Removed the guarded_extensions array (now the guarded status is placed in the same extensions method array)
- Added a new guard_extensions static field to allow guarding all registered extension methods
Fix typos
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
Allow to register multiple names for extension method
# Provide links to any relevant tickets, articles or other resources
Also allow to unregister multiple names in batch
Add guarded extension methods
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
Add missing typehints and change docblocks to generics syntax
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
Add strict_type declarations
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
Add missing methods to Extensible contract
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
Add docblocks headers
# Explain why this change is being made
# Provide links to any relevant tickets, articles or other resources
|
| Date: |
7 months ago |
| Size: |
1,511 bytes |
|
|
|