gabrielbull/php-ups-api

View on GitHub
src/Entity/DateRange.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Ups\Entity;

class DateRange
{
    public $BeginDate;
    public $EndDate;

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