platform/api/symfony/Component/Finder/Comparator/Comparator.yaml
2024-09-02 10:44:11 -07:00

25 lines
917 B
YAML

name: Comparator
class_comment: '# * @author Fabien Potencier <fabien@symfony.com>'
dependencies: []
properties: []
methods:
- name: getTarget
visibility: public
parameters: []
comment: "# * @author Fabien Potencier <fabien@symfony.com>\n# */\n# class Comparator\n\
# {\n# private string $operator;\n# \n# public function __construct(\n# private\
\ string $target,\n# string $operator = '==',\n# ) {\n# if (!\\in_array($operator,\
\ ['>', '<', '>=', '<=', '==', '!='])) {\n# throw new \\InvalidArgumentException(\\\
sprintf('Invalid operator \"%s\".', $operator));\n# }\n# \n# $this->operator =\
\ $operator;\n# }\n# \n# /**\n# * Gets the target value."
- name: getOperator
visibility: public
parameters: []
comment: '# * Gets the comparison operator.'
- name: test
visibility: public
parameters:
- name: test
comment: '# * Tests against the target.'
traits: []
interfaces: []