[BUGFIX] Fix link to edit file metadata in full window
[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 interface AccessibleObjectInterface
21 {
22 /**
23 * Calls the method $method using call_user_func* and returns its return value.
24 *
25 * @param string $methodName name of method to call, must not be empty
26 *
27 * @return mixed the return value from the method $methodName
28 */
29 public function _call($methodName);
30
31 /**
32 * Calls the method $method without using call_user_func* and returns its return value.
33 *
34 * @param string $methodName name of method to call, must not be empty
35 * @param mixed &$arg1 first argument given to method $methodName
36 * @param mixed &$arg2 second argument given to method $methodName
37 * @param mixed &$arg3 third argument given to method $methodName
38 * @param mixed &$arg4 fourth argument given to method $methodName
39 * @param mixed &$arg5 fifth argument given to method $methodName
40 * @param mixed &$arg6 sixth argument given to method $methodName
41 * @param mixed &$arg7 seventh argument given to method $methodName
42 * @param mixed &$arg8 eighth argument given to method $methodName
43 * @param mixed &$arg9 ninth argument given to method $methodName
44 *
45 * @return mixed the return value from the method $methodName
46 */
47 public function _callRef(
48 $methodName, &$arg1 = null, &$arg2 = null, &$arg3 = null, &$arg4 = null, &$arg5= null, &$arg6 = null, &$arg7 = null,
49 &$arg8 = null, &$arg9 = null
50 );
51
52 /**
53 * Sets the value of a property.
54 *
55 * @param string $propertyName name of property to set value for, must not be empty
56 * @param mixed $value the new value for the property defined in $propertyName
57 *
58 * @return void
59 */
60 public function _set($propertyName, $value);
61
62 /**
63 * Sets the value of a property by reference.
64 *
65 * @param string $propertyName name of property to set value for, must not be empty
66 * @param mixed &$value the new value for the property defined in $propertyName
67 *
68 * @return void
69 */
70 public function _setRef($propertyName, &$value);
71
72 /**
73 * Sets the value of a static property.
74 *
75 * @param string $propertyName name of property to set value for, must not be empty
76 * @param mixed $value the new value for the property defined in $propertyName
77 *
78 * @return void
79 */
80 public function _setStatic($propertyName, $value);
81
82 /**
83 * Gets the value of the given property.
84 *
85 * @param string $propertyName name of property to return value of, must not be empty
86 *
87 * @return mixed the value of the property $propertyName
88 */
89 public function _get($propertyName);
90
91 /**
92 * Gets the value of the given static property.
93 *
94 * @param string $propertyName name of property to return value of, must not be empty
95 *
96 * @return mixed the value of the static property $propertyName
97 */
98 public function _getStatic($propertyName);
99 }