gabrielbull/php-ups-api

View on GitHub
src/Entity/ActivityLocation.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Ups\Entity;

class ActivityLocation
{
    public $AddressArtifactFormat;

    /**
     * @param \stdClass|null $response
     */
    public function __construct(\stdClass $response = null)
    {
        $this->AddressArtifactFormat = new AddressArtifactFormat();

        if (null !== $response) {
            if (isset($response->AddressArtifactFormat)) {
                $this->AddressArtifactFormat = new AddressArtifactFormat($response->AddressArtifactFormat);
            }
        }
    }
}