Reflection/Class.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Reflection  
Version
$Id$  

\Zend_Reflection_Class

Package: Zend_Reflection
Parent(s)
\ReflectionClass
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

methodpublicgetContents(bool $includeDocblock = true) : string

Return the contents of the class

Parameters
NameTypeDescription
$includeDocblockbool
Returns
TypeDescription
string
methodpublicgetDeclaringFile( $reflectionClass = 'Zend_Reflection_File') : \Zend_Reflection_File

Return the reflection file of the declaring file.

Parameters
NameTypeDescription
$reflectionClass
Returns
TypeDescription
\Zend_Reflection_File
methodpublicgetDocblock(string $reflectionClass = 'Zend_Reflection_Docblock') : \Zend_Reflection_Docblock

Return the classes Docblock reflection object

Parameters
NameTypeDescription
$reflectionClassstring

Name of reflection class to use

Returns
TypeDescription
\Zend_Reflection_Docblock
Throws
ExceptionDescription
\Zend_Reflection_Exceptionfor missing docblock or invalid reflection class
methodpublicgetInterfaces(string $reflectionClass = 'Zend_Reflection_Class') : array

Get all reflection objects of implemented interfaces

Parameters
NameTypeDescription
$reflectionClassstring

Name of reflection class to use

Returns
TypeDescription
arrayArray of Zend_Reflection_Class
methodpublicgetMethod(string $name, string $reflectionClass = 'Zend_Reflection_Method') : \Zend_Reflection_Method

Return method reflection by name

Parameters
NameTypeDescription
$namestring
$reflectionClassstring

Reflection class to utilize

Returns
TypeDescription
\Zend_Reflection_Method
methodpublicgetMethods(string $filter = -1, string $reflectionClass = 'Zend_Reflection_Method') : array

Get reflection objects of all methods

Parameters
NameTypeDescription
$filterstring
$reflectionClassstring

Reflection class to use for methods

Returns
TypeDescription
arrayArray of Zend_Reflection_Method objects
methodpublicgetParentClass(string $reflectionClass = 'Zend_Reflection_Class') : \Zend_Reflection_Class

Get parent reflection class of reflected class

Parameters
NameTypeDescription
$reflectionClassstring

Name of Reflection class to use

Returns
TypeDescription
\Zend_Reflection_Class
methodpublicgetProperties(int $filter = -1, string $reflectionClass = 'Zend_Reflection_Property') : array

Return reflection properties of this class

Parameters
NameTypeDescription
$filterint
$reflectionClassstring

Name of reflection class to use

Returns
TypeDescription
arrayArray of Zend_Reflection_Property
methodpublicgetProperty(string $name, string $reflectionClass = 'Zend_Reflection_Property') : \Zend_Reflection_Property

Return reflection property of this class by name

Parameters
NameTypeDescription
$namestring
$reflectionClassstring

Name of reflection class to use

Returns
TypeDescription
\Zend_Reflection_Property
methodpublicgetStartLine(bool $includeDocComment = false) : int

Return the start line of the class

Parameters
NameTypeDescription
$includeDocCommentbool
Returns
TypeDescription
int
Documentation was generated by phpDocumentor 2.2.0 .