code: public function setUploaded($uploaded)
      {
          if ($uploaded instanceof DateTime) {
              $this->uploaded = $uploaded;
          } else {
              try {
                  $this->uploaded = new DateTime($uploaded);
              } catch (\Exception $e) {
                  $this->uploaded = null;
              }
          }
  
          return $this;
      }
docs: Sets the "uploaded" of the MediaResponse.
  
  @param DateTime $uploaded
  
  @return MediaResponse