73 lines
1.3 KiB
YAML
73 lines
1.3 KiB
YAML
name: ForwardsCalls
|
|
class_comment: null
|
|
dependencies:
|
|
- name: BadMethodCallException
|
|
type: class
|
|
source: BadMethodCallException
|
|
- name: Error
|
|
type: class
|
|
source: Error
|
|
properties: []
|
|
methods:
|
|
- name: forwardCallTo
|
|
visibility: protected
|
|
parameters:
|
|
- name: object
|
|
- name: method
|
|
- name: parameters
|
|
comment: '# * Forward a method call to the given object.
|
|
|
|
# *
|
|
|
|
# * @param mixed $object
|
|
|
|
# * @param string $method
|
|
|
|
# * @param array $parameters
|
|
|
|
# * @return mixed
|
|
|
|
# *
|
|
|
|
# * @throws \BadMethodCallException'
|
|
- name: forwardDecoratedCallTo
|
|
visibility: protected
|
|
parameters:
|
|
- name: object
|
|
- name: method
|
|
- name: parameters
|
|
comment: '# * Forward a method call to the given object, returning $this if the
|
|
forwarded call returned itself.
|
|
|
|
# *
|
|
|
|
# * @param mixed $object
|
|
|
|
# * @param string $method
|
|
|
|
# * @param array $parameters
|
|
|
|
# * @return mixed
|
|
|
|
# *
|
|
|
|
# * @throws \BadMethodCallException'
|
|
- name: throwBadMethodCallException
|
|
visibility: protected
|
|
parameters:
|
|
- name: method
|
|
comment: '# * Throw a bad method call exception for the given method.
|
|
|
|
# *
|
|
|
|
# * @param string $method
|
|
|
|
# * @return void
|
|
|
|
# *
|
|
|
|
# * @throws \BadMethodCallException'
|
|
traits:
|
|
- BadMethodCallException
|
|
- Error
|
|
interfaces: []
|