platform/api/symfony/Component/Finder/Comparator/Comparator.yaml

26 lines
917 B
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
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: []