annotate vendor/doctrine/common/lib/Doctrine/Common/Reflection/StaticReflectionMethod.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 <?php
Chris@0 2 /*
Chris@0 3 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Chris@0 4 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Chris@0 5 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Chris@0 6 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Chris@0 7 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Chris@0 8 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Chris@0 9 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Chris@0 10 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Chris@0 11 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Chris@0 12 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Chris@0 13 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Chris@0 14 *
Chris@0 15 * This software consists of voluntary contributions made by many individuals
Chris@0 16 * and is licensed under the MIT license. For more information, see
Chris@0 17 * <http://www.doctrine-project.org>.
Chris@0 18 */
Chris@0 19
Chris@0 20 namespace Doctrine\Common\Reflection;
Chris@0 21
Chris@0 22 use ReflectionException;
Chris@0 23 use ReflectionMethod;
Chris@0 24
Chris@0 25 class StaticReflectionMethod extends ReflectionMethod
Chris@0 26 {
Chris@0 27 /**
Chris@0 28 * The PSR-0 parser object.
Chris@0 29 *
Chris@0 30 * @var StaticReflectionParser
Chris@0 31 */
Chris@0 32 protected $staticReflectionParser;
Chris@0 33
Chris@0 34 /**
Chris@0 35 * The name of the method.
Chris@0 36 *
Chris@0 37 * @var string
Chris@0 38 */
Chris@0 39 protected $methodName;
Chris@0 40
Chris@0 41 /**
Chris@0 42 * @param StaticReflectionParser $staticReflectionParser
Chris@0 43 * @param string $methodName
Chris@0 44 */
Chris@0 45 public function __construct(StaticReflectionParser $staticReflectionParser, $methodName)
Chris@0 46 {
Chris@0 47 $this->staticReflectionParser = $staticReflectionParser;
Chris@0 48 $this->methodName = $methodName;
Chris@0 49 }
Chris@0 50
Chris@0 51 /**
Chris@0 52 * {@inheritDoc}
Chris@0 53 */
Chris@0 54 public function getName()
Chris@0 55 {
Chris@0 56 return $this->methodName;
Chris@0 57 }
Chris@0 58
Chris@0 59 /**
Chris@0 60 * @return StaticReflectionParser
Chris@0 61 */
Chris@0 62 protected function getStaticReflectionParser()
Chris@0 63 {
Chris@0 64 return $this->staticReflectionParser->getStaticReflectionParserForDeclaringClass('method', $this->methodName);
Chris@0 65 }
Chris@0 66
Chris@0 67 /**
Chris@0 68 * {@inheritDoc}
Chris@0 69 */
Chris@0 70 public function getDeclaringClass()
Chris@0 71 {
Chris@0 72 return $this->getStaticReflectionParser()->getReflectionClass();
Chris@0 73 }
Chris@0 74
Chris@0 75 /**
Chris@0 76 * {@inheritDoc}
Chris@0 77 */
Chris@0 78 public function getNamespaceName()
Chris@0 79 {
Chris@0 80 return $this->getStaticReflectionParser()->getNamespaceName();
Chris@0 81 }
Chris@0 82
Chris@0 83 /**
Chris@0 84 * {@inheritDoc}
Chris@0 85 */
Chris@0 86 public function getDocComment()
Chris@0 87 {
Chris@0 88 return $this->getStaticReflectionParser()->getDocComment('method', $this->methodName);
Chris@0 89 }
Chris@0 90
Chris@0 91 /**
Chris@0 92 * @return array
Chris@0 93 */
Chris@0 94 public function getUseStatements()
Chris@0 95 {
Chris@0 96 return $this->getStaticReflectionParser()->getUseStatements();
Chris@0 97 }
Chris@0 98
Chris@0 99 /**
Chris@0 100 * {@inheritDoc}
Chris@0 101 */
Chris@0 102 public static function export($class, $name, $return = false)
Chris@0 103 {
Chris@0 104 throw new ReflectionException('Method not implemented');
Chris@0 105 }
Chris@0 106
Chris@0 107 /**
Chris@0 108 * {@inheritDoc}
Chris@0 109 */
Chris@0 110 public function getClosure($object)
Chris@0 111 {
Chris@0 112 throw new ReflectionException('Method not implemented');
Chris@0 113 }
Chris@0 114
Chris@0 115 /**
Chris@0 116 * {@inheritDoc}
Chris@0 117 */
Chris@0 118 public function getModifiers()
Chris@0 119 {
Chris@0 120 throw new ReflectionException('Method not implemented');
Chris@0 121 }
Chris@0 122
Chris@0 123 /**
Chris@0 124 * {@inheritDoc}
Chris@0 125 */
Chris@0 126 public function getPrototype()
Chris@0 127 {
Chris@0 128 throw new ReflectionException('Method not implemented');
Chris@0 129 }
Chris@0 130
Chris@0 131 /**
Chris@0 132 * {@inheritDoc}
Chris@0 133 */
Chris@0 134 public function invoke($object, $parameter = null)
Chris@0 135 {
Chris@0 136 throw new ReflectionException('Method not implemented');
Chris@0 137 }
Chris@0 138
Chris@0 139 /**
Chris@0 140 * {@inheritDoc}
Chris@0 141 */
Chris@0 142 public function invokeArgs($object, array $args)
Chris@0 143 {
Chris@0 144 throw new ReflectionException('Method not implemented');
Chris@0 145 }
Chris@0 146
Chris@0 147 /**
Chris@0 148 * {@inheritDoc}
Chris@0 149 */
Chris@0 150 public function isAbstract()
Chris@0 151 {
Chris@0 152 throw new ReflectionException('Method not implemented');
Chris@0 153 }
Chris@0 154
Chris@0 155 /**
Chris@0 156 * {@inheritDoc}
Chris@0 157 */
Chris@0 158 public function isConstructor()
Chris@0 159 {
Chris@0 160 throw new ReflectionException('Method not implemented');
Chris@0 161 }
Chris@0 162
Chris@0 163 /**
Chris@0 164 * {@inheritDoc}
Chris@0 165 */
Chris@0 166 public function isDestructor()
Chris@0 167 {
Chris@0 168 throw new ReflectionException('Method not implemented');
Chris@0 169 }
Chris@0 170
Chris@0 171 /**
Chris@0 172 * {@inheritDoc}
Chris@0 173 */
Chris@0 174 public function isFinal()
Chris@0 175 {
Chris@0 176 throw new ReflectionException('Method not implemented');
Chris@0 177 }
Chris@0 178
Chris@0 179 /**
Chris@0 180 * {@inheritDoc}
Chris@0 181 */
Chris@0 182 public function isPrivate()
Chris@0 183 {
Chris@0 184 throw new ReflectionException('Method not implemented');
Chris@0 185 }
Chris@0 186
Chris@0 187 /**
Chris@0 188 * {@inheritDoc}
Chris@0 189 */
Chris@0 190 public function isProtected()
Chris@0 191 {
Chris@0 192 throw new ReflectionException('Method not implemented');
Chris@0 193 }
Chris@0 194
Chris@0 195 /**
Chris@0 196 * {@inheritDoc}
Chris@0 197 */
Chris@0 198 public function isPublic()
Chris@0 199 {
Chris@0 200 throw new ReflectionException('Method not implemented');
Chris@0 201 }
Chris@0 202
Chris@0 203 /**
Chris@0 204 * {@inheritDoc}
Chris@0 205 */
Chris@0 206 public function isStatic()
Chris@0 207 {
Chris@0 208 throw new ReflectionException('Method not implemented');
Chris@0 209 }
Chris@0 210
Chris@0 211 /**
Chris@0 212 * {@inheritDoc}
Chris@0 213 */
Chris@0 214 public function setAccessible($accessible)
Chris@0 215 {
Chris@0 216 throw new ReflectionException('Method not implemented');
Chris@0 217 }
Chris@0 218
Chris@0 219 /**
Chris@0 220 * {@inheritDoc}
Chris@0 221 */
Chris@0 222 public function __toString()
Chris@0 223 {
Chris@0 224 throw new ReflectionException('Method not implemented');
Chris@0 225 }
Chris@0 226
Chris@0 227 /**
Chris@0 228 * {@inheritDoc}
Chris@0 229 */
Chris@0 230 public function getClosureThis()
Chris@0 231 {
Chris@0 232 throw new ReflectionException('Method not implemented');
Chris@0 233 }
Chris@0 234
Chris@0 235 /**
Chris@0 236 * {@inheritDoc}
Chris@0 237 */
Chris@0 238 public function getEndLine()
Chris@0 239 {
Chris@0 240 throw new ReflectionException('Method not implemented');
Chris@0 241 }
Chris@0 242
Chris@0 243 /**
Chris@0 244 * {@inheritDoc}
Chris@0 245 */
Chris@0 246 public function getExtension()
Chris@0 247 {
Chris@0 248 throw new ReflectionException('Method not implemented');
Chris@0 249 }
Chris@0 250
Chris@0 251 /**
Chris@0 252 * {@inheritDoc}
Chris@0 253 */
Chris@0 254 public function getExtensionName()
Chris@0 255 {
Chris@0 256 throw new ReflectionException('Method not implemented');
Chris@0 257 }
Chris@0 258
Chris@0 259 /**
Chris@0 260 * {@inheritDoc}
Chris@0 261 */
Chris@0 262 public function getFileName()
Chris@0 263 {
Chris@0 264 throw new ReflectionException('Method not implemented');
Chris@0 265 }
Chris@0 266
Chris@0 267 /**
Chris@0 268 * {@inheritDoc}
Chris@0 269 */
Chris@0 270 public function getNumberOfParameters()
Chris@0 271 {
Chris@0 272 throw new ReflectionException('Method not implemented');
Chris@0 273 }
Chris@0 274
Chris@0 275 /**
Chris@0 276 * {@inheritDoc}
Chris@0 277 */
Chris@0 278 public function getNumberOfRequiredParameters()
Chris@0 279 {
Chris@0 280 throw new ReflectionException('Method not implemented');
Chris@0 281 }
Chris@0 282
Chris@0 283 /**
Chris@0 284 * {@inheritDoc}
Chris@0 285 */
Chris@0 286 public function getParameters()
Chris@0 287 {
Chris@0 288 throw new ReflectionException('Method not implemented');
Chris@0 289 }
Chris@0 290
Chris@0 291 /**
Chris@0 292 * {@inheritDoc}
Chris@0 293 */
Chris@0 294 public function getShortName()
Chris@0 295 {
Chris@0 296 throw new ReflectionException('Method not implemented');
Chris@0 297 }
Chris@0 298
Chris@0 299 /**
Chris@0 300 * {@inheritDoc}
Chris@0 301 */
Chris@0 302 public function getStartLine()
Chris@0 303 {
Chris@0 304 throw new ReflectionException('Method not implemented');
Chris@0 305 }
Chris@0 306
Chris@0 307 /**
Chris@0 308 * {@inheritDoc}
Chris@0 309 */
Chris@0 310 public function getStaticVariables()
Chris@0 311 {
Chris@0 312 throw new ReflectionException('Method not implemented');
Chris@0 313 }
Chris@0 314
Chris@0 315 /**
Chris@0 316 * {@inheritDoc}
Chris@0 317 */
Chris@0 318 public function inNamespace()
Chris@0 319 {
Chris@0 320 throw new ReflectionException('Method not implemented');
Chris@0 321 }
Chris@0 322
Chris@0 323 /**
Chris@0 324 * {@inheritDoc}
Chris@0 325 */
Chris@0 326 public function isClosure()
Chris@0 327 {
Chris@0 328 throw new ReflectionException('Method not implemented');
Chris@0 329 }
Chris@0 330
Chris@0 331 /**
Chris@0 332 * {@inheritDoc}
Chris@0 333 */
Chris@0 334 public function isDeprecated()
Chris@0 335 {
Chris@0 336 throw new ReflectionException('Method not implemented');
Chris@0 337 }
Chris@0 338
Chris@0 339 /**
Chris@0 340 * {@inheritDoc}
Chris@0 341 */
Chris@0 342 public function isInternal()
Chris@0 343 {
Chris@0 344 throw new ReflectionException('Method not implemented');
Chris@0 345 }
Chris@0 346
Chris@0 347 /**
Chris@0 348 * {@inheritDoc}
Chris@0 349 */
Chris@0 350 public function isUserDefined()
Chris@0 351 {
Chris@0 352 throw new ReflectionException('Method not implemented');
Chris@0 353 }
Chris@0 354
Chris@0 355 /**
Chris@0 356 * {@inheritDoc}
Chris@0 357 */
Chris@0 358 public function returnsReference()
Chris@0 359 {
Chris@0 360 throw new ReflectionException('Method not implemented');
Chris@0 361 }
Chris@0 362 }