162 lines
3.8 KiB
YAML
162 lines
3.8 KiB
YAML
|
name: Profile
|
||
|
class_comment: '# * Profile.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @author Fabien Potencier <fabien@symfony.com>'
|
||
|
dependencies:
|
||
|
- name: DataCollectorInterface
|
||
|
type: class
|
||
|
source: Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface
|
||
|
properties: []
|
||
|
methods:
|
||
|
- name: getToken
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: "# * Profile.\n# *\n# * @author Fabien Potencier <fabien@symfony.com>\n\
|
||
|
# */\n# class Profile\n# {\n# /**\n# * @var DataCollectorInterface[]\n# */\n#\
|
||
|
\ private array $collectors = [];\n# \n# private ?string $ip = null;\n# private\
|
||
|
\ ?string $method = null;\n# private ?string $url = null;\n# private ?int $time\
|
||
|
\ = null;\n# private ?int $statusCode = null;\n# private ?self $parent = null;\n\
|
||
|
# private ?string $virtualType = null;\n# \n# /**\n# * @var Profile[]\n# */\n\
|
||
|
# private array $children = [];\n# \n# public function __construct(\n# private\
|
||
|
\ string $token,\n# ) {\n# }\n# \n# public function setToken(string $token): void\n\
|
||
|
# {\n# $this->token = $token;\n# }\n# \n# /**\n# * Gets the token."
|
||
|
- name: setParent
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: parent
|
||
|
comment: '# * Sets the parent token.'
|
||
|
- name: getParent
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Returns the parent profile.'
|
||
|
- name: getParentToken
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Returns the parent token.'
|
||
|
- name: getIp
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Returns the IP.'
|
||
|
- name: setIp
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: ip
|
||
|
comment: null
|
||
|
- name: getMethod
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Returns the request method.'
|
||
|
- name: setMethod
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: method
|
||
|
comment: null
|
||
|
- name: getUrl
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Returns the URL.'
|
||
|
- name: setUrl
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: url
|
||
|
comment: null
|
||
|
- name: getTime
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
- name: setTime
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: time
|
||
|
comment: null
|
||
|
- name: setStatusCode
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: statusCode
|
||
|
comment: null
|
||
|
- name: getStatusCode
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
- name: setVirtualType
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: virtualType
|
||
|
comment: '# * @internal'
|
||
|
- name: getVirtualType
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * @internal'
|
||
|
- name: getChildren
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Finds children profilers.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return self[]'
|
||
|
- name: setChildren
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: children
|
||
|
comment: '# * Sets children profiler.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param Profile[] $children'
|
||
|
- name: addChild
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: child
|
||
|
comment: '# * Adds the child token.'
|
||
|
- name: getChildByToken
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: token
|
||
|
comment: null
|
||
|
- name: getCollector
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: name
|
||
|
comment: '# * Gets a Collector by name.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @throws \InvalidArgumentException if the collector does not exist'
|
||
|
- name: getCollectors
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Gets the Collectors associated with this profile.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return DataCollectorInterface[]'
|
||
|
- name: setCollectors
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: collectors
|
||
|
comment: '# * Sets the Collectors associated with this profile.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param DataCollectorInterface[] $collectors'
|
||
|
- name: addCollector
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: collector
|
||
|
comment: '# * Adds a Collector.'
|
||
|
- name: hasCollector
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: name
|
||
|
comment: null
|
||
|
- name: __sleep
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
traits:
|
||
|
- Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface
|
||
|
interfaces: []
|