Trait BackreferenceTrait
stack from the calling method, so it can determine it's caller.
Traits provide extended method support to classes without requiring a direct, linear chain of inheritance. This allows functions to inherit subsets of related methods without declaring a parent class.
In Oroboros core, ALL methods are granted to classes via traits, and the classes themselves are just containers that correlate their methods to an interface they are expected to honor. This approach maximizes interoperability, by entirely removing class inheritance as a requirement for extension of any class in this system.
3rd parties using this package are not expected to follow this approach,
but ALL of our internal class and logic structure does.
Direct Known Users
Package: oroboros\core\utilities
Category: contract-interfaces
License: The MIT License (MIT)
Author: Brian Dayhoff mopsyd@me.com
Version: 0.2.4
Since: 0.2.4-alpha
Link: bitbucket.org/oroborosframework/oroboros-core/wiki/development/api/contract_interface.md
Located at core/traits/utilities/logic/BackReferenceTrait.php
Methods summary
protected
string|boolean
|
#
_getBackReference( )
Returns the accurate, immediate backreference of one prior level of the stack up from wherever it was called, honoring inheritance and trait definitions that were not overridden within a class. |
private
|
|
private
|
#
_findBackReferenceRealInheritanceLocation(
|
private
|
#
_getBackReferenceMatchingTraits(
Will check if a reflector uses traits recursively through all levels of inheritance. |
private
|
|
private
|