Source of file GetServerTimestampResult.php
Size: 0,905 Bytes - Last Modified: 2021-12-23T10:46:09+00:00
/var/www/docs.ssmods.com/process/src/code/SForce/GetServerTimestampResult.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445 | <?php namespace SForce\Wsdl; class GetServerTimestampResult { /** * @var \DateTime */ protected $timestamp = null; /** * @param \DateTime $timestamp */ public function __construct(\DateTime $timestamp = null) { $this->timestamp = $timestamp ? $timestamp->format(\DateTime::ATOM) : null; } /** * @return \DateTime */ public function getTimestamp() { if ($this->timestamp === null) { return null; } try { return new \DateTime($this->timestamp); } catch (\Exception $e) { return false; } } /** * @param \DateTime $timestamp * @return \SForce\Wsdl\GetServerTimestampResult */ public function setTimestamp(\DateTime $timestamp) { $this->timestamp = $timestamp->format(\DateTime::ATOM); return $this; } } |