platform/api/symfony/Component/Console/Input/StringInput.yaml
2024-09-02 10:44:11 -07:00

48 lines
1.4 KiB
YAML

name: StringInput
class_comment: '# * StringInput represents an input provided as a string.
# *
# * Usage:
# *
# * $input = new StringInput(''foo --bar="foobar"'');
# *
# * @author Fabien Potencier <fabien@symfony.com>'
dependencies:
- name: InvalidArgumentException
type: class
source: Symfony\Component\Console\Exception\InvalidArgumentException
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: input
comment: "# * StringInput represents an input provided as a string.\n# *\n# * Usage:\n\
# *\n# * $input = new StringInput('foo --bar=\"foobar\"');\n# *\n# * @author\
\ Fabien Potencier <fabien@symfony.com>\n# */\n# class StringInput extends ArgvInput\n\
# {\n# public const REGEX_UNQUOTED_STRING = '([^\\s\\\\\\\\]+?)';\n# public const\
\ REGEX_QUOTED_STRING = '(?:\"([^\"\\\\\\\\]*(?:\\\\\\\\.[^\"\\\\\\\\]*)*)\"|\\\
'([^\\'\\\\\\\\]*(?:\\\\\\\\.[^\\'\\\\\\\\]*)*)\\')';\n# \n# /**\n# * @param string\
\ $input A string representing the parameters from the CLI"
- name: tokenize
visibility: private
parameters:
- name: input
comment: '# * Tokenizes a string.
# *
# * @return list<string>
# *
# * @throws InvalidArgumentException When unable to parse input (should never
happen)'
traits:
- Symfony\Component\Console\Exception\InvalidArgumentException
interfaces: []