Overview
  • Package
  • Class

Packages

  • Klarna
    • Checkout
  • Payment
    • Klarna
      • HTTP
      • Interfaces
      • Unit
        • Tests

Classes

  • Klarna_Checkout_BasicConnector
  • Klarna_Checkout_Connector
  • Klarna_Checkout_Digest
  • Klarna_Checkout_Order
  • Klarna_Checkout_RecurringOrder
  • Klarna_Checkout_RecurringStatus
  • Klarna_Checkout_Resource
  • Klarna_Checkout_UserAgent

Interfaces

  • Klarna_Checkout_ApiErrorException
  • Klarna_Checkout_ConnectionErrorException
  • Klarna_Checkout_ConnectorException
  • Klarna_Checkout_ConnectorInterface
  • Klarna_Checkout_Exception
  • Klarna_Checkout_ResourceCreateableInterface
  • Klarna_Checkout_ResourceFetchableInterface
  • Klarna_Checkout_ResourceInterface
  • Klarna_Checkout_ResourceUpdateableInterface

Class Klarna_Checkout_Resource

Implementation of the order resource

Klarna_Checkout_Resource implements Klarna_Checkout_ResourceInterface, ArrayAccess

Direct known subclasses

Klarna_Checkout_Order, Klarna_Checkout_RecurringOrder, Klarna_Checkout_RecurringStatus

Abstract
Package: Klarna\Checkout
Category: Payment
Copyright: 2015 Klarna AB
License: Apache license v2.0
Author: Majid G. majid.garmaroudi@klarna.com
Author: David K. david.keijser@klarna.com
Author: Matthias Feist matthias.feist@klarna.com
Link: http://developers.klarna.com/
Located at Klarna/Checkout/Resource.php

Methods summary

public
# __construct( Klarna_Checkout_ConnectorInterface $connector )

Create a new Resource object

Create a new Resource object

Parameters

$connector
connector to use
public string
# getLocation( )

Get the URL of the resource

Get the URL of the resource

Returns

string

Implementation of

Klarna_Checkout_ResourceInterface::getLocation()
public
# setLocation( string $location )

Set the URL of the resource

Set the URL of the resource

Parameters

$location
URL of the resource

Implementation of

Klarna_Checkout_ResourceInterface::setLocation()
public string
# getContentType( )

Return content type of the resource

Return content type of the resource

Returns

string
Content type

Implementation of

Klarna_Checkout_ResourceInterface::getContentType()
public string
# getAccept( )

Return accept header of the resource

Return accept header of the resource

Returns

string
Accept header

Implementation of

Klarna_Checkout_ResourceInterface::getAccept()
public
# setContentType( string $contentType )

Set the content type

Set the content type

Parameters

$contentType
Content type

Implementation of

Klarna_Checkout_ResourceInterface::setContentType()
public
# setAccept( string $accept )

Set the accept type

Set the accept type

Parameters

$accept
Accept type

Implementation of

Klarna_Checkout_ResourceInterface::setAccept()
public
# parse( array $data )

Replace resource data

Replace resource data

Parameters

$data
data

Implementation of

Klarna_Checkout_ResourceInterface::parse()
public array
# marshal( )

Basic representation of the object

Basic representation of the object

Returns

array
Data

Implementation of

Klarna_Checkout_ResourceInterface::marshal()
public mixed
# offsetGet( string $key )

Get value of a key

Get value of a key

Parameters

$key
Key

Returns

mixed
data

Implementation of

ArrayAccess::offsetGet()
public
# offsetSet( string $key, mixed $value )

Set value of a key

Set value of a key

Parameters

$key
Key
$value
Value of the key

Implementation of

ArrayAccess::offsetSet()
public boolean
# offsetExists( string $key )

Check if a key exists in the resource

Check if a key exists in the resource

Parameters

$key
key

Returns

boolean

Implementation of

ArrayAccess::offsetExists()
public
# offsetUnset( string $key )

Unset the value of a key

Unset the value of a key

Parameters

$key
key

Implementation of

ArrayAccess::offsetUnset()

Magic methods summary

Properties summary

protected string $relativePath

Path that is used to create resources

Path that is used to create resources

# null
protected string $contentType

Content Type to use

Content Type to use

# null
protected string $accept

Accept header to use

Accept header to use

# null
protected string $location

URI of remote resource

URI of remote resource

#
protected array $data

Order data

Order data

# array()
protected Klarna_Checkout_ConnectorInterface $connector

Connector

Connector

#
API documentation generated by ApiGen