Overview

Namespaces

  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
    • Tests
      • Batch
      • Cache
      • Common
        • Cache
        • Exception
      • Http
        • Curl
        • Exception
        • Message
          • Header
      • Inflection
      • Iterator
      • Log
      • Message
      • Mock
      • Parser
        • Cookie
        • Message
      • Parsers
        • UriTemplate
      • Plugin
        • Async
        • Backoff
        • Cache
        • Cookie
          • CookieJar
        • CurlAuth
        • ErrorResponse
        • History
        • Log
        • Md5
        • Mock
        • Oauth
        • Redirect
      • Service
        • Builder
        • Command
          • LocationVisitor
            • Request
            • Response
        • Description
        • Exception
        • Mock
          • Command
            • Sub
          • Model
        • Resource
      • Stream
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • VivaPayments
      • Message
  • PHP

Classes

  • AbstractGateway
  • CreditCard
  • Currency
  • GatewayFactory
  • Helper
  • Issuer
  • Item
  • ItemBag
  • PaymentMethod

Interfaces

  • GatewayInterface
  • ItemInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class ItemBag

Cart Item Bag

This class defines a bag (multi element set or array) of single cart items in the Omnipay system.

Omnipay\Common\ItemBag implements IteratorAggregate, Countable
Namespace: Omnipay\Common
See: Omnipay\Common\Item
Located at Common/ItemBag.php
Methods summary
public
# __construct( array $items = array() )

Constructor

Constructor

Parameters

$items
An array of items
public array
# all( )

Return all the items

Return all the items

Returns

array
An array of items

See

Omnipay\Common\Item
public
# replace( array $items = array() )

Replace the contents of this bag with the specified items

Replace the contents of this bag with the specified items

Parameters

$items
An array of items

See

Omnipay\Common\Item
public
# add( Omnipay\Common\ItemInterface|array $item )

Add an item to the bag

Add an item to the bag

Parameters

$item
An existing item, or associative array of item parameters

See

Omnipay\Common\Item
public ArrayIterator
# getIterator( )

Returns an iterator for items

Returns an iterator for items

Returns

ArrayIterator
An \ArrayIterator instance

Implementation of

IteratorAggregate::getIterator()
public integer
# count( )

Returns the number of items

Returns the number of items

Returns

integer
The number of items

Implementation of

Countable::count()
Properties summary
protected array $items

Item storage

Item storage

See

Omnipay\Common\Item
#
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen