77 lines
1.6 KiB
YAML
77 lines
1.6 KiB
YAML
name: ManagesFragments
|
|
class_comment: null
|
|
dependencies:
|
|
- name: InvalidArgumentException
|
|
type: class
|
|
source: InvalidArgumentException
|
|
properties:
|
|
- name: fragments
|
|
visibility: protected
|
|
comment: '# * All of the captured, rendered fragments.
|
|
|
|
# *
|
|
|
|
# * @var array'
|
|
- name: fragmentStack
|
|
visibility: protected
|
|
comment: '# * The stack of in-progress fragment renders.
|
|
|
|
# *
|
|
|
|
# * @var array'
|
|
methods:
|
|
- name: startFragment
|
|
visibility: public
|
|
parameters:
|
|
- name: fragment
|
|
comment: "# * All of the captured, rendered fragments.\n# *\n# * @var array\n# */\n\
|
|
# protected $fragments = [];\n# \n# /**\n# * The stack of in-progress fragment\
|
|
\ renders.\n# *\n# * @var array\n# */\n# protected $fragmentStack = [];\n# \n\
|
|
# /**\n# * Start injecting content into a fragment.\n# *\n# * @param string \
|
|
\ $fragment\n# * @return void"
|
|
- name: stopFragment
|
|
visibility: public
|
|
parameters: []
|
|
comment: '# * Stop injecting content into a fragment.
|
|
|
|
# *
|
|
|
|
# * @return string
|
|
|
|
# *
|
|
|
|
# * @throws \InvalidArgumentException'
|
|
- name: getFragment
|
|
visibility: public
|
|
parameters:
|
|
- name: name
|
|
- name: default
|
|
default: 'null'
|
|
comment: '# * Get the contents of a fragment.
|
|
|
|
# *
|
|
|
|
# * @param string $name
|
|
|
|
# * @param string|null $default
|
|
|
|
# * @return mixed'
|
|
- name: getFragments
|
|
visibility: public
|
|
parameters: []
|
|
comment: '# * Get the entire array of rendered fragments.
|
|
|
|
# *
|
|
|
|
# * @return array'
|
|
- name: flushFragments
|
|
visibility: public
|
|
parameters: []
|
|
comment: '# * Flush all of the fragments.
|
|
|
|
# *
|
|
|
|
# * @return void'
|
|
traits:
|
|
- InvalidArgumentException
|
|
interfaces: []
|