public static function setFile($file)
    {
      $rf = realpath($file);
      if (is_file($rf))
        throw new \CatapultApiException("File provided does not exist..");  

      self::$credentials_opts['file'] = realpath($file);
    }
public static function setFile($file)
    {
      $rf = realpath($file);
      if (is_file($rf))
        throw new \CatapultApiException("File provided does not exist..");  

      self::$credentials_opts['file'] = realpath($file);
    }
public static function setFile ( $ file ) { $ rf = realpath ( $ file ) ; if ( is_file ( $ rf ) ) throw new \ CatapultApiException ( "File provided does not exist.." ) ; self :: $ credentials_opts [ 'file' ] = realpath ( $ file ) ; }
Sets the file
to find credentials
suitable when the term credentials is not
being used for the credentials file

@param file: file
Sets the file to find credentials suitable when the term credentials is not being used for the credentials file