original_string: public static function setDefaultLicense(array $license)
      {
          if (!array_key_exists('name', $license) || !array_key_exists('key', $license)) {
              throw new Exception\InvalidArgumentException(__METHOD__ . " In order to set a default libxl license you must provide an associative array with 'name' and 'key' set.");
          }
  
          self::$default_license = $license;
      }
code: public static function setDefaultLicense(array $license)
      {
          if (!array_key_exists('name', $license) || !array_key_exists('key', $license)) {
              throw new Exception\InvalidArgumentException(__METHOD__ . " In order to set a default libxl license you must provide an associative array with 'name' and 'key' set.");
          }
  
          self::$default_license = $license;
      }
code_tokens: public static function setDefaultLicense ( array $ license ) { if ( ! array_key_exists ( 'name' , $ license ) || ! array_key_exists ( 'key' , $ license ) ) { throw new Exception \ InvalidArgumentException ( __METHOD__ . " In order to set a default libxl license you must provide an associative array with 'name' and 'key' set." ) ; } self :: $ default_license = $ license ; }
docstring: Set default license information
  
  @throws Exception\InvalidArgumentException
  @param array $license associative array with 'name' and 'key'
docstring_tokens: Set default license information