src/ServiceBus/Models/BrokerProperties.php
public function setValueArrayDateTime(array &$valueArray, $key, $value)
    {
        Validate::isString($key, 'key');

        if (!empty($value)) {
            Validate::isDate($value, 'value');
            $valueArray[$key] = gmdate(
                Resources::AZURE_DATE_FORMAT,
                $value->getTimestamp()
            );
        }
    }
public function setValueArrayDateTime(array &$valueArray, $key, $value)
    {
        Validate::isString($key, 'key');

        if (!empty($value)) {
            Validate::isDate($value, 'value');
            $valueArray[$key] = gmdate(
                Resources::AZURE_DATE_FORMAT,
                $value->getTimestamp()
            );
        }
    }
public function setValueArrayDateTime ( array & $ valueArray , $ key , $ value ) { Validate :: isString ( $ key , 'key' ) ; if ( ! empty ( $ value ) ) { Validate :: isDate ( $ value , 'value' ) ; $ valueArray [ $ key ] = gmdate ( Resources :: AZURE_DATE_FORMAT , $ value -> getTimestamp ( ) ) ; } }
Sets a DateTime value in an array.

@param array     &$valueArray The array of a set of values
@param string    $key         The key of the key value pair
@param \DateTime $value       The value of the key value pair
Sets a DateTime value in an array .