155 lines
3.3 KiB
YAML
155 lines
3.3 KiB
YAML
name: CompilesComponents
|
|
class_comment: null
|
|
dependencies:
|
|
- name: CanBeEscapedWhenCastToString
|
|
type: class
|
|
source: Illuminate\Contracts\Support\CanBeEscapedWhenCastToString
|
|
- name: Str
|
|
type: class
|
|
source: Illuminate\Support\Str
|
|
- name: AnonymousComponent
|
|
type: class
|
|
source: Illuminate\View\AnonymousComponent
|
|
- name: ComponentAttributeBag
|
|
type: class
|
|
source: Illuminate\View\ComponentAttributeBag
|
|
properties:
|
|
- name: componentHashStack
|
|
visibility: protected
|
|
comment: '# * The component name hash stack.
|
|
|
|
# *
|
|
|
|
# * @var array'
|
|
methods:
|
|
- name: compileComponent
|
|
visibility: protected
|
|
parameters:
|
|
- name: expression
|
|
comment: "# * The component name hash stack.\n# *\n# * @var array\n# */\n# protected\
|
|
\ static $componentHashStack = [];\n# \n# /**\n# * Compile the component statements\
|
|
\ into valid PHP.\n# *\n# * @param string $expression\n# * @return string"
|
|
- name: newComponentHash
|
|
visibility: public
|
|
parameters:
|
|
- name: component
|
|
comment: '# * Get a new component hash for a component name.
|
|
|
|
# *
|
|
|
|
# * @param string $component
|
|
|
|
# * @return string'
|
|
- name: compileClassComponentOpening
|
|
visibility: public
|
|
parameters:
|
|
- name: component
|
|
- name: alias
|
|
- name: data
|
|
- name: hash
|
|
comment: '# * Compile a class component opening.
|
|
|
|
# *
|
|
|
|
# * @param string $component
|
|
|
|
# * @param string $alias
|
|
|
|
# * @param string $data
|
|
|
|
# * @param string $hash
|
|
|
|
# * @return string'
|
|
- name: compileEndComponent
|
|
visibility: protected
|
|
parameters: []
|
|
comment: '# * Compile the end-component statements into valid PHP.
|
|
|
|
# *
|
|
|
|
# * @return string'
|
|
- name: compileEndComponentClass
|
|
visibility: public
|
|
parameters: []
|
|
comment: '# * Compile the end-component statements into valid PHP.
|
|
|
|
# *
|
|
|
|
# * @return string'
|
|
- name: compileSlot
|
|
visibility: protected
|
|
parameters:
|
|
- name: expression
|
|
comment: '# * Compile the slot statements into valid PHP.
|
|
|
|
# *
|
|
|
|
# * @param string $expression
|
|
|
|
# * @return string'
|
|
- name: compileEndSlot
|
|
visibility: protected
|
|
parameters: []
|
|
comment: '# * Compile the end-slot statements into valid PHP.
|
|
|
|
# *
|
|
|
|
# * @return string'
|
|
- name: compileComponentFirst
|
|
visibility: protected
|
|
parameters:
|
|
- name: expression
|
|
comment: '# * Compile the component-first statements into valid PHP.
|
|
|
|
# *
|
|
|
|
# * @param string $expression
|
|
|
|
# * @return string'
|
|
- name: compileEndComponentFirst
|
|
visibility: protected
|
|
parameters: []
|
|
comment: '# * Compile the end-component-first statements into valid PHP.
|
|
|
|
# *
|
|
|
|
# * @return string'
|
|
- name: compileProps
|
|
visibility: protected
|
|
parameters:
|
|
- name: expression
|
|
comment: '# * Compile the prop statement into valid PHP.
|
|
|
|
# *
|
|
|
|
# * @param string $expression
|
|
|
|
# * @return string'
|
|
- name: compileAware
|
|
visibility: protected
|
|
parameters:
|
|
- name: expression
|
|
comment: '# * Compile the aware statement into valid PHP.
|
|
|
|
# *
|
|
|
|
# * @param string $expression
|
|
|
|
# * @return string'
|
|
- name: sanitizeComponentAttribute
|
|
visibility: public
|
|
parameters:
|
|
- name: value
|
|
comment: '# * Sanitize the given component attribute value.
|
|
|
|
# *
|
|
|
|
# * @param mixed $value
|
|
|
|
# * @return mixed'
|
|
traits:
|
|
- Illuminate\Contracts\Support\CanBeEscapedWhenCastToString
|
|
- Illuminate\Support\Str
|
|
- Illuminate\View\AnonymousComponent
|
|
- Illuminate\View\ComponentAttributeBag
|
|
interfaces: []
|