api/symfony/Component/ExpressionLanguage/Token.yaml
2024-09-26 02:03:21 -07:00

34 lines
1.1 KiB
YAML

name: Token
class_comment: '# * Represents a token.
# *
# * @author Fabien Potencier <fabien@symfony.com>'
dependencies: []
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: type
- name: value
- name: cursor
comment: "# * Represents a token.\n# *\n# * @author Fabien Potencier <fabien@symfony.com>\n\
# */\n# class Token\n# {\n# public const EOF_TYPE = 'end of expression';\n# public\
\ const NAME_TYPE = 'name';\n# public const NUMBER_TYPE = 'number';\n# public\
\ const STRING_TYPE = 'string';\n# public const OPERATOR_TYPE = 'operator';\n\
# public const PUNCTUATION_TYPE = 'punctuation';\n# \n# /**\n# * @param self::*_TYPE\
\ $type\n# * @param int|null $cursor The cursor position in the source"
- name: __toString
visibility: public
parameters: []
comment: '# * Returns a string representation of the token.'
- name: test
visibility: public
parameters:
- name: type
- name: value
default: 'null'
comment: '# * Tests the current token for a type and/or a value.'
traits: []
interfaces: []