public function testReverseTransformRequiresDateTimeObject()
 {
     $transformer = new TimestampToDatetimeTransformer();
     $this->setExpectedException('Tystr\\RedisOrm\\Exception\\InvalidArgumentException');
     $transformer->reverseTransform(123);
 }
 /**
  * @param string $type
  * @param mixed $value
  * @return mixed|string
  */
 protected function reverseTransformValue($type, $value)
 {
     if ($type == DataTypes::DATE && $value instanceof \DateTime) {
         $transformer = new TimestampToDatetimeTransformer();
         return $transformer->reverseTransform($value);
     }
     return $value;
 }