name: Comparator class_comment: '# * @author Fabien Potencier ' dependencies: [] properties: [] methods: - name: getTarget visibility: public parameters: [] comment: "# * @author Fabien Potencier \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: []