gabrielbull/php-ups-api

View on GitHub
src/Entity/CustomsValue.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Ups\Entity;

class CustomsValue
{
    public $MonetaryValue;

    /**
     * @param \stdClass|null $response
     */
    public function __construct(\stdClass $response = null)
    {
        if (null !== $response) {
            if (isset($response->MonetaryValue)) {
                $this->MonetaryValue = $response->MonetaryValue;
            }
        }
    }
}