Source of file getDeleted.php
Size: 2,122 Bytes - Last Modified: 2021-12-23T10:46:09+00:00
/var/www/docs.ssmods.com/process/src/code/SForce/getDeleted.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 | <?php namespace SForce\Wsdl; class getDeleted { /** * @var string */ protected $sObjectType = null; /** * @var \DateTime */ protected $startDate = null; /** * @var \DateTime */ protected $endDate = null; /** * @param string $sObjectType * @param \DateTime $startDate * @param \DateTime $endDate */ public function __construct($sObjectType = null, \DateTime $startDate = null, \DateTime $endDate = null) { $this->sObjectType = $sObjectType; $this->startDate = $startDate ? $startDate->format(\DateTime::ATOM) : null; $this->endDate = $endDate ? $endDate->format(\DateTime::ATOM) : null; } /** * @return string */ public function getSObjectType() { return $this->sObjectType; } /** * @param string $sObjectType * @return \SForce\Wsdl\getDeleted */ public function setSObjectType($sObjectType) { $this->sObjectType = $sObjectType; return $this; } /** * @return \DateTime */ public function getStartDate() { if ($this->startDate === null) { return null; } try { return new \DateTime($this->startDate); } catch (\Exception $e) { return false; } } /** * @param \DateTime $startDate * @return \SForce\Wsdl\getDeleted */ public function setStartDate(\DateTime $startDate) { $this->startDate = $startDate->format(\DateTime::ATOM); return $this; } /** * @return \DateTime */ public function getEndDate() { if ($this->endDate === null) { return null; } try { return new \DateTime($this->endDate); } catch (\Exception $e) { return false; } } /** * @param \DateTime $endDate * @return \SForce\Wsdl\getDeleted */ public function setEndDate(\DateTime $endDate) { $this->endDate = $endDate->format(\DateTime::ATOM); return $this; } } |