lib/BlockCypher/Common/ReflectionUtil.php
public static function isPropertyClassArray($class, $propertyName)
    {
        // If the class doesn't exist, or the method doesn't exist, return null.
        if (!class_exists($class) || !method_exists($class, self::getter($class, $propertyName))) {
            return null;
        }

        if (($annotations = self::propertyAnnotations($class, $propertyName)) && isset($annotations['return'])) {
            $param = $annotations['return'];
        }

        if (isset($param)) {
            return substr($param, -strlen('[]')) === '[]';
        } else {
            throw new BlockCypherConfigurationException("Getter function for '$propertyName' in '$class' class should have a proper return type.");
        }
    }
public static function isPropertyClassArray($class, $propertyName)
    {
        // If the class doesn't exist, or the method doesn't exist, return null.
        if (!class_exists($class) || !method_exists($class, self::getter($class, $propertyName))) {
            return null;
        }

        if (($annotations = self::propertyAnnotations($class, $propertyName)) && isset($annotations['return'])) {
            $param = $annotations['return'];
        }

        if (isset($param)) {
            return substr($param, -strlen('[]')) === '[]';
        } else {
            throw new BlockCypherConfigurationException("Getter function for '$propertyName' in '$class' class should have a proper return type.");
        }
    }
public static function isPropertyClassArray ( $ class , $ propertyName ) { // If the class doesn't exist, or the method doesn't exist, return null. if ( ! class_exists ( $ class ) || ! method_exists ( $ class , self :: getter ( $ class , $ propertyName ) ) ) { return null ; } if ( ( $ annotations = self :: propertyAnnotations ( $ class , $ propertyName ) ) && isset ( $ annotations [ 'return' ] ) ) { $ param = $ annotations [ 'return' ] ; } if ( isset ( $ param ) ) { return substr ( $ param , - strlen ( '[]' ) ) === '[]' ; } else { throw new BlockCypherConfigurationException ( "Getter function for '$propertyName' in '$class' class should have a proper return type." ) ; } }
Checks if the Property is of type array or an object

@param $class
@param $propertyName
@return null|boolean
@throws BlockCypherConfigurationException
Checks if the Property is of type array or an object