PayU integration by Krzysztof Gzocha
  • Namespace
  • Class

Namespaces

  • Team3
    • PayU
      • Annotation
      • Communication
        • CurlRequestBuilder
        • HttpStatusParser
        • Notification
        • Process
          • NotificationProcess
          • ResponseDeserializer
        • Request
          • Model
        • Response
          • Model
        • Sender
      • Configuration
        • Credentials
      • Order
        • Autocomplete
          • Strategy
        • Model
          • Buyer
          • Money
          • Products
          • ShippingMethods
          • Traits
        • Transformer
          • UserOrder
            • Strategy
              • Product
              • ShippingMethod
      • PropertyExtractor
        • Reader
      • Serializer
      • SignatureCalculator
        • Encoder
          • Algorithms
          • Strategy
        • ParametersSorter
        • Validator
      • ValidatorBuilder

Classes

  • Money

Interfaces

  • MoneyInterface
  • WrongMoneyValueException

Class Money

All money information will be stored and manipulated in this class.

Class Money

Team3\PayU\Order\Model\Money\Money implements Team3\PayU\Order\Model\Money\MoneyInterface
Namespace: Team3\PayU\Order\Model\Money
Package: Team3\PayU\Order\Model\Money
Located at Team3/PayU/Order/Model/Money/Money.php

Methods summary

public
# __construct( float $value, string $currency = null, integer $precision = 2 )

Parameters

$value
$currency
$precision

Throws

Team3\PayU\Order\Model\Money\WrongMoneyValueException
public string
# __toString( )

Returns

string
public float|integer
# getValue( )

Returns

float|integer

Inheritdoc

Implementation of

Team3\PayU\Order\Model\Money\MoneyInterface::getValue()
public integer
# getValueWithoutSeparation( integer $precision = 2 )

When precision is set to 2 this method will transforms 12.34 into 1234.

When precision is set to 2 this method will transforms 12.34 into 1234.

Parameters

$precision

Returns

integer

Implementation of

Team3\PayU\Order\Model\Money\MoneyInterface::getValueWithoutSeparation()
public Team3\PayU\Order\Model\Money\MoneyInterface
# add( Team3\PayU\Order\Model\Money\MoneyInterface $money )

Parameters

$money

Returns

Team3\PayU\Order\Model\Money\MoneyInterface

Implementation of

Team3\PayU\Order\Model\Money\MoneyInterface::add()
public Team3\PayU\Order\Model\Money\MoneyInterface
# multiply( float $multiplier )

Parameters

$multiplier

Returns

Team3\PayU\Order\Model\Money\MoneyInterface

Implementation of

Team3\PayU\Order\Model\Money\MoneyInterface::multiply()
protected
# checkValueValidity( float $value )

Parameters

$value

Throws

Team3\PayU\Order\Model\Money\WrongMoneyValueException

Magic methods summary

Properties summary

protected float $value

Assert\greaterthan(0)

#
protected string $currency

Assert\length(min="3",

max="3")
#
protected integer $precision

Assert\greaterthan(0)

#
PayU integration by Krzysztof Gzocha API documentation generated by ApiGen