original_string: public function createDateTime($value)
      {
          $date = null;
  
          if(is_string($value)) {
              $date = new \DateTime($value);
          }
  
          if(is_int($value)) {
              $date = new \DateTime();
              $date->setTimestamp($value);
          }
  
          return $date;
      }
code: public function createDateTime($value)
      {
          $date = null;
  
          if(is_string($value)) {
              $date = new \DateTime($value);
          }
  
          if(is_int($value)) {
              $date = new \DateTime();
              $date->setTimestamp($value);
          }
  
          return $date;
      }
code_tokens: public function createDateTime ( $ value ) { $ date = null ; if ( is_string ( $ value ) ) { $ date = new \ DateTime ( $ value ) ; } if ( is_int ( $ value ) ) { $ date = new \ DateTime ( ) ; $ date -> setTimestamp ( $ value ) ; } return $ date ; }
docstring: Return DateTime object
  
  @param $value
  @return \DateTime
docstring_tokens: Return DateTime object