[TASK] Streamline phpdoc annotations in EXT:extbase
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Validation / Validator / Fixture / AbstractCompositeValidatorClass.php
1 <?php
2 namespace TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\Fixture;
3
4 /*
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16
17 /**
18 * Testcase for the abstract base-class of vvalidators
19 */
20 class AbstractCompositeValidatorClass extends \TYPO3\CMS\Extbase\Validation\Validator\AbstractCompositeValidator
21 {
22 /**
23 * @var array
24 */
25 protected $supportedOptions = [
26 'requiredOption' => [0, 'Some value', 'integer', true],
27 'demoOption' => [PHP_INT_MAX, 'Some value', 'integer'],
28 ];
29
30 /**
31 * Check if $value is valid. If it is not valid, needs to add an error
32 * to Result.
33 *
34 * @param mixed $value
35 */
36 protected function isValid($value)
37 {
38 // dummy
39 }
40
41 /**
42 * Checks if the given value is valid according to the validator, and returns
43 * the Error Messages object which occurred.
44 *
45 * @param mixed $value The value that should be validated
46 * @return \TYPO3\CMS\Extbase\Error\Result
47 * @api
48 */
49 public function validate($value)
50 {
51 return new \TYPO3\CMS\Extbase\Error\Result();
52 }
53 }