Class: dataReflectionMethod

Attributes:
Inherits:
Implements:

Contents:

Introduction

Attention
Attention: No description has been provided for this class.

Meta Data

Attention
Attention: There is no meta data for this class.

Constants

There are no constants defined for this class.

Properties

Methods

Also See

Attention
Attention: There are no additional references for this class.

Class Syntax

In file D:\oblib-core\php\oblib\dataReflection\dataReflection.class.php between lines 160 and 196.

<?php
 
    
class dataReflectionMethod extends dataObject
    
{
        
        function 
__construct (ReflectionMethod $objReflectionMethod)
        {
            
parent::__construct ('ReflectionMethod');
            
            
$this->___Push (new dataReflectionDocComment ($objReflectionMethod->getDocComment ()));
            
$this->___Push (new dataString ('DeclaringClass'    $objReflectionMethod->getDeclaringClass ()->getName ()));
            
$this->___Push (new dataString ('Name'                $objReflectionMethod->getName ()));
            
            
$this->___Push (new dataBoolean ('isFinal'            $objReflectionMethod->isFinal ()));
            
$this->___Push (new dataBoolean ('isAbstract'        $objReflectionMethod->isAbstract ()));
            
$this->___Push (new dataBoolean ('isPublic'            $objReflectionMethod->isPublic ()));
            
$this->___Push (new dataBoolean ('isPrivate'        $objReflectionMethod->isPrivate ()));
            
$this->___Push (new dataBoolean ('isProtected'        $objReflectionMethod->isProtected ()));
            
$this->___Push (new dataBoolean ('isStatic'            $objReflectionMethod->isStatic ()));
            
$this->___Push (new dataBoolean ('isConstructor'    $objReflectionMethod->isConstructor ()));
            
$this->___Push (new dataBoolean ('isDestructor'        $objReflectionMethod->isDestructor ()));
            
$this->___Push (new dataBoolean ('isInternal'        $objReflectionMethod->isInternal ()));
            
$this->___Push (new dataBoolean ('isUserDefined'    $objReflectionMethod->isUserDefined ()));
            
$this->___Push (new dataString ('Modifiers'            implode (' 'Reflection::getModifierNames ($objReflectionMethod->getModifiers ()))));
            
$this->___Push (new dataString ('FileName'            $objReflectionMethod->getFileName ()));
            
$this->___Push (new dataNumber ('StartLine'            $objReflectionMethod->getStartLine ()));
            
$this->___Push (new dataNumber ('EndLine'            $objReflectionMethod->getEndLine ()));
            
            
$this->___Push (new dataBoolean ('returnsReference'    $objReflectionMethod->returnsReference ()));
            
$this->___Push (new dataSeries ('Parameters',        'dataReflectionParameter'));
            
$this->___Push (new dataNumber ('NumberOfParameters'            $objReflectionMethod->getNumberOfParameters ()));
            
$this->___Push (new dataNumber ('NumberOfRequiredParameters'    $objReflectionMethod->getNumberOfRequiredParameters ()));
            
            foreach (
$objReflectionMethod->getParameters () as $objReflectionParameter)
            {
                
$this->Parameters->___Push (new dataReflectionParameter ($objReflectionParameter));
            }
        }
    }

?>