Prado\Data\SqlMap\Configuration\TResultProperty::instanceOfArrayType PHP Method

instanceOfArrayType() public method

Returns true if the result property {@link Type getType()} is of \ArrayAccess or that the actual result object is an array or implements \ArrayAccess
public instanceOfArrayType ( $target ) : boolean
return boolean true if the result object is an instance of \ArrayAccess or is an array.
    public function instanceOfArrayType($target)
    {
        if ($this->getType() === null) {
            $prop = TPropertyAccess::get($target, $this->getProperty());
            if (is_object($prop)) {
                return $prop instanceof \ArrayAccess;
            }
            return is_array($prop);
        }
        return $this->getPropertyValueType() == self::ARRAY_TYPE;
    }