public function setObjectPrototype($objectPrototype)
    {
        if (!is_object($objectPrototype)
            || (!$objectPrototype instanceof ArrayObject && !method_exists($objectPrototype, 'exchangeArray'))

        ) {
            throw new Exception\InvalidArgumentException(sprintf(
                'Object must be of type %s, or at least implement %s',
                'ArrayObject',
                'exchangeArray'
            ));
        }
        $this->arrayObjectPrototype = $objectPrototype;
        return $this;
    }
public function setObjectPrototype($objectPrototype)
    {
        if (!is_object($objectPrototype)
            || (!$objectPrototype instanceof ArrayObject && !method_exists($objectPrototype, 'exchangeArray'))

        ) {
            throw new Exception\InvalidArgumentException(sprintf(
                'Object must be of type %s, or at least implement %s',
                'ArrayObject',
                'exchangeArray'
            ));
        }
        $this->arrayObjectPrototype = $objectPrototype;
        return $this;
    }
public function setObjectPrototype ( $ objectPrototype ) { if ( ! is_object ( $ objectPrototype ) || ( ! $ objectPrototype instanceof ArrayObject && ! method_exists ( $ objectPrototype , 'exchangeArray' ) ) ) { throw new Exception \ InvalidArgumentException ( sprintf ( 'Object must be of type %s, or at least implement %s' , 'ArrayObject' , 'exchangeArray' ) ) ; } $ this -> arrayObjectPrototype = $ objectPrototype ; return $ this ; }
Set the item object prototype

@param  object $objectPrototype
@throws Exception\InvalidArgumentException
@return ResultSetInterface
Set the item object prototype