PHP Class PayPal\Common\ReflectionUtil

Show file Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
getPropertyClass ( $class, $propertyName ) : null | string Gets Property Class of the given property.
getter ( string $class, string $propertyName ) : string Returns the properly formatted getter function name based on class name and property Formats the property name to a standard getter function
isPropertyClassArray ( $class, $propertyName ) : null | boolean Checks if the Property is of type array or an object
propertyAnnotations ( $class, $propertyName ) : mixed Retrieves Annotations of each property

Private Methods

Method Description
replace_callback ( $match ) : string preg_replace_callback callback function

Method Details

getPropertyClass() public static method

If the class is null, it returns null. If the property is not found, it returns null.
public static getPropertyClass ( $class, $propertyName ) : null | string
$class
$propertyName
return null | string

getter() public static method

Returns the properly formatted getter function name based on class name and property Formats the property name to a standard getter function
public static getter ( string $class, string $propertyName ) : string
$class string
$propertyName string
return string getter function name

isPropertyClassArray() public static method

Checks if the Property is of type array or an object
public static isPropertyClassArray ( $class, $propertyName ) : null | boolean
$class
$propertyName
return null | boolean

propertyAnnotations() public static method

Retrieves Annotations of each property
public static propertyAnnotations ( $class, $propertyName ) : mixed
$class
$propertyName
return mixed