gabrielbull/php-ups-api

View on GitHub
src/Entity/Activity.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Ups\Entity;

class Activity
{
    public $Date;
    public $Time;

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