[TASK] Re-work/simplify copyright header in PHP files - Part 4
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / AccessibleObjectInterface.php
1 <?php
2 namespace TYPO3\CMS\Core\Tests;
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 * This interface defines the methods provided by TYPO3\CMS\Core\Tests\TestCase::getAccessibleMock.::
19 *
20 * @author Nicole Cordes <nicole.cordes@googlemail.com>
21 */
22 interface AccessibleObjectInterface {
23 /**
24 * Calls the method $method using call_user_func* and returns its return value.
25 *
26 * @param string $methodName name of method to call, must not be empty
27 *
28 * @return mixed the return value from the method $methodName
29 */
30 public function _call($methodName);
31
32 /**
33 * Calls the method $method without using call_user_func* and returns its return value.
34 *
35 * @param string $methodName name of method to call, must not be empty
36 * @param mixed &$arg1 first argument given to method $methodName
37 * @param mixed &$arg2 second argument given to method $methodName
38 * @param mixed &$arg3 third argument given to method $methodName
39 * @param mixed &$arg4 fourth argument given to method $methodName
40 * @param mixed &$arg5 fifth argument given to method $methodName
41 * @param mixed &$arg6 sixth argument given to method $methodName
42 * @param mixed &$arg7 seventh argument given to method $methodName
43 * @param mixed &$arg8 eighth argument given to method $methodName
44 * @param mixed &$arg9 ninth argument given to method $methodName
45 *
46 * @return mixed the return value from the method $methodName
47 */
48 public function _callRef(
49 $methodName, &$arg1 = NULL, &$arg2 = NULL, &$arg3 = NULL, &$arg4 = NULL, &$arg5= NULL, &$arg6 = NULL, &$arg7 = NULL,
50 &$arg8 = NULL, &$arg9 = NULL
51 );
52
53 /**
54 * Sets the value of a property.
55 *
56 * @param string $propertyName name of property to set value for, must not be empty
57 * @param mixed $value the new value for the property defined in $propertyName
58 *
59 * @return void
60 */
61 public function _set($propertyName, $value);
62
63 /**
64 * Sets the value of a property by reference.
65 *
66 * @param string $propertyName name of property to set value for, must not be empty
67 * @param mixed &$value the new value for the property defined in $propertyName
68 *
69 * @return void
70 */
71 public function _setRef($propertyName, &$value);
72
73 /**
74 * Sets the value of a static property.
75 *
76 * @param string $propertyName name of property to set value for, must not be empty
77 * @param mixed $value the new value for the property defined in $propertyName
78 *
79 * @return void
80 */
81 public function _setStatic($propertyName, $value);
82
83 /**
84 * Gets the value of the given property.
85 *
86 * @param string $propertyName name of property to return value of, must not be empty
87 *
88 * @return mixed the value of the property $propertyName
89 */
90 public function _get($propertyName);
91
92 /**
93 * Gets the value of the given static property.
94 *
95 * @param string $propertyName name of property to return value of, must not be empty
96 *
97 * @return mixed the value of the static property $propertyName
98 */
99 public function _getStatic($propertyName);
100 }