code: public function addDeploymentFile($item)
      {
          if (!($item instanceof DeploymentFile)) {
              if (is_array($item)) {
                  try {
                      $item = new DeploymentFile($item);
                  } catch (\Exception $e) {
                      trigger_error('Could not auto-instantiate DeploymentFile. ' . $e->getMessage(), E_USER_WARNING);
                  }
              } else {
                  trigger_error('Array parameter item is not of expected type "DeploymentFile"!', E_USER_WARNING);
              }
          }
          $this->deployedFiles[] = $item;
  
          return $this;
      }
docs: Adds an object of "DeployedFiles" of the MediaResponse.
  
  @param DeploymentFile|array $item
  
  @return MediaResponse