Source of file DeletedRecord.php
Size: 1,298 Bytes - Last Modified: 2021-12-23T10:46:09+00:00
/var/www/docs.ssmods.com/process/src/code/SForce/DeletedRecord.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 | <?php namespace SForce\Wsdl; class DeletedRecord { /** * @var \DateTime */ protected $deletedDate = null; /** * @var ID */ protected $id = null; /** * @param \DateTime $deletedDate * @param ID $id */ public function __construct(\DateTime $deletedDate = null, $id = null) { $this->deletedDate = $deletedDate ? $deletedDate->format(\DateTime::ATOM) : null; $this->id = $id; } /** * @return \DateTime */ public function getDeletedDate() { if ($this->deletedDate === null) { return null; } try { return new \DateTime($this->deletedDate); } catch (\Exception $e) { return false; } } /** * @param \DateTime $deletedDate * @return \SForce\Wsdl\DeletedRecord */ public function setDeletedDate(\DateTime $deletedDate) { $this->deletedDate = $deletedDate->format(\DateTime::ATOM); return $this; } /** * @return ID */ public function getId() { return $this->id; } /** * @param ID $id * @return \SForce\Wsdl\DeletedRecord */ public function setId($id) { $this->id = $id; return $this; } } |