Reflection/Class.php
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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Reflection
- Version
- $Id: Class.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Reflection_Class
- Parent(s)
- \ReflectionClass
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods

getContents(bool $includeDocblock = true) : stringReturn the contents of the class
| Name | Type | Description |
|---|---|---|
| $includeDocblock | bool |
| Type | Description |
|---|---|
| string |

getDeclaringFile( $reflectionClass = 'Zend_Reflection_File') : \Zend_Reflection_FileReturn the reflection file of the declaring file.
| Name | Type | Description |
|---|---|---|
| $reflectionClass |
| Type | Description |
|---|---|
| \Zend_Reflection_File |

getDocblock(string $reflectionClass = 'Zend_Reflection_Docblock') : \Zend_Reflection_DocblockReturn the classes Docblock reflection object
| Name | Type | Description |
|---|---|---|
| $reflectionClass | string | Name of reflection class to use |
| Type | Description |
|---|---|
| \Zend_Reflection_Docblock |
| Exception | Description |
|---|---|
| \Zend_Reflection_Exception | for missing docblock or invalid reflection class |

getInterfaces(string $reflectionClass = 'Zend_Reflection_Class') : arrayGet all reflection objects of implemented interfaces
| Name | Type | Description |
|---|---|---|
| $reflectionClass | string | Name of reflection class to use |
| Type | Description |
|---|---|
| array | Array of Zend_Reflection_Class |

getMethod(string $name, string $reflectionClass = 'Zend_Reflection_Method') : \Zend_Reflection_MethodReturn method reflection by name
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $reflectionClass | string | Reflection class to utilize |
| Type | Description |
|---|---|
| \Zend_Reflection_Method |

getMethods(string $filter = -1, string $reflectionClass = 'Zend_Reflection_Method') : arrayGet reflection objects of all methods
| Name | Type | Description |
|---|---|---|
| $filter | string | |
| $reflectionClass | string | Reflection class to use for methods |
| Type | Description |
|---|---|
| array | Array of Zend_Reflection_Method objects |

getParentClass(string $reflectionClass = 'Zend_Reflection_Class') : \Zend_Reflection_ClassGet parent reflection class of reflected class
| Name | Type | Description |
|---|---|---|
| $reflectionClass | string | Name of Reflection class to use |
| Type | Description |
|---|---|
| \Zend_Reflection_Class |

getProperties(int $filter = -1, string $reflectionClass = 'Zend_Reflection_Property') : arrayReturn reflection properties of this class
| Name | Type | Description |
|---|---|---|
| $filter | int | |
| $reflectionClass | string | Name of reflection class to use |
| Type | Description |
|---|---|
| array | Array of Zend_Reflection_Property |

getProperty(string $name, string $reflectionClass = 'Zend_Reflection_Property') : \Zend_Reflection_PropertyReturn reflection property of this class by name
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $reflectionClass | string | Name of reflection class to use |
| Type | Description |
|---|---|
| \Zend_Reflection_Property |