public static function createFromArray($array, $unparsed = [])
  {
    $nyaaMeta = new NyaaMeta();

    foreach ($array as $key => $value) {
      $nyaaMeta->set($key, $value);
    }

    $nyaaMeta->setUnparsed($unparsed);
    return $nyaaMeta;
  }
public static function createFromArray($array, $unparsed = [])
  {
    $nyaaMeta = new NyaaMeta();

    foreach ($array as $key => $value) {
      $nyaaMeta->set($key, $value);
    }

    $nyaaMeta->setUnparsed($unparsed);
    return $nyaaMeta;
  }
public static function createFromArray ( $ array , $ unparsed = [ ] ) { $ nyaaMeta = new NyaaMeta ( ) ; foreach ( $ array as $ key => $ value ) { $ nyaaMeta -> set ( $ key , $ value ) ; } $ nyaaMeta -> setUnparsed ( $ unparsed ) ; return $ nyaaMeta ; }
Creates a new NyaaMeta instance from array

@param array $array array of tags that could be parsed
@param array $unparsed The tags that couldn't be parsed
@return NyaaMeta
Creates a new NyaaMeta instance from array