@@ 374-485 (lines=112) @@ | ||
371 | /** |
|
372 | * {@inheritdoc} |
|
373 | */ |
|
374 | protected static function initPropertyMapDefinition() { |
|
375 | static::$propertyMapDefinition |
|
376 | ->addPropertyMap( |
|
377 | new PropertyDefinition('idLeague'), |
|
378 | new PropertyDefinition('id') |
|
379 | ) |
|
380 | ->addPropertyMap( |
|
381 | new PropertyDefinition('strLeague'), |
|
382 | new PropertyDefinition('name') |
|
383 | ) |
|
384 | ->addPropertyMap( |
|
385 | new PropertyDefinition('strSport'), |
|
386 | new PropertyDefinition('sport', 'sport'), |
|
387 | [self::class, 'transformSport'], |
|
388 | [Sport::class, 'reverse'] |
|
389 | ) |
|
390 | ->addPropertyMap( |
|
391 | new PropertyDefinition('strLeagueAlternate'), |
|
392 | new PropertyDefinition('alternateName') |
|
393 | ) |
|
394 | ->addPropertyMap( |
|
395 | new PropertyDefinition('intFormedYear'), |
|
396 | new PropertyDefinition('formedYear') |
|
397 | ) |
|
398 | ->addPropertyMap( |
|
399 | new PropertyDefinition('dateFirstEvent'), |
|
400 | new PropertyDefinition('dateFirstEvent')) //"2013-03-02", |
|
401 | ->addPropertyMap( |
|
402 | new PropertyDefinition('strGender'), |
|
403 | new PropertyDefinition('gender') |
|
404 | ) |
|
405 | ->addPropertyMap( |
|
406 | new PropertyDefinition('strCountry'), |
|
407 | new PropertyDefinition('country') |
|
408 | ) |
|
409 | ->addPropertyMap( |
|
410 | new PropertyDefinition('strWebsite'), |
|
411 | new PropertyDefinition('website') |
|
412 | ) |
|
413 | ->addPropertyMap( |
|
414 | new PropertyDefinition('strFacebook'), |
|
415 | new PropertyDefinition('facebook') |
|
416 | ) |
|
417 | ->addPropertyMap( |
|
418 | new PropertyDefinition('strTwitter'), |
|
419 | new PropertyDefinition('twitter') |
|
420 | ) |
|
421 | ->addPropertyMap( |
|
422 | new PropertyDefinition('strYoutube'), |
|
423 | new PropertyDefinition('youtube') |
|
424 | ) |
|
425 | ->addPropertyMap( |
|
426 | new PropertyDefinition('strRSS'), |
|
427 | new PropertyDefinition('rss') |
|
428 | ) |
|
429 | ->addPropertyMap( |
|
430 | new PropertyDefinition('strDescriptionEN'), |
|
431 | new PropertyDefinition('description') |
|
432 | ) |
|
433 | ->addPropertyMap( |
|
434 | new PropertyDefinition('strBanner'), |
|
435 | new PropertyDefinition('banner') |
|
436 | ) |
|
437 | ->addPropertyMap( |
|
438 | new PropertyDefinition('strBadge'), |
|
439 | new PropertyDefinition('badge') |
|
440 | ) |
|
441 | ->addPropertyMap( |
|
442 | new PropertyDefinition('strLogo'), |
|
443 | new PropertyDefinition('logo') |
|
444 | ) |
|
445 | ->addPropertyMap( |
|
446 | new PropertyDefinition('strPoster'), |
|
447 | new PropertyDefinition('poster') |
|
448 | ) |
|
449 | ->addPropertyMap( |
|
450 | new PropertyDefinition('strTrophy'), |
|
451 | new PropertyDefinition('trophy') |
|
452 | ) |
|
453 | ->addPropertyMap( |
|
454 | new PropertyDefinition('strNaming'), |
|
455 | new PropertyDefinition('naming') |
|
456 | ) |
|
457 | ->addPropertyMap( |
|
458 | new PropertyDefinition('strLocked'), |
|
459 | new PropertyDefinition('locked') |
|
460 | ) |
|
461 | ->addPropertyMap( |
|
462 | new PropertyDefinition('seasons'), |
|
463 | new PropertyDefinition('seasons', 'season', TRUE), |
|
464 | [self::class, 'transformSeasons'], |
|
465 | [Season::class, 'reverseArray'] |
|
466 | ); |
|
467 | // idSoccerXML |
|
468 | // strDescriptionDE |
|
469 | // strDescriptionFR |
|
470 | // strDescriptionIT |
|
471 | // strDescriptionCN |
|
472 | // strDescriptionJP |
|
473 | // strDescriptionRU |
|
474 | // strDescriptionES |
|
475 | // strDescriptionPT |
|
476 | // strDescriptionSE |
|
477 | // strDescriptionNL |
|
478 | // strDescriptionHU |
|
479 | // strDescriptionNO |
|
480 | // strDescriptionPL |
|
481 | // strFanart1 |
|
482 | // strFanart2 |
|
483 | // strFanart3 |
|
484 | // strFanart4 |
|
485 | } |
|
486 | ||
487 | } |
|
488 |
@@ 383-505 (lines=123) @@ | ||
380 | /** |
|
381 | * {@inheritdoc} |
|
382 | */ |
|
383 | protected static function initPropertyMapDefinition() { |
|
384 | static::$propertyMapDefinition |
|
385 | ->addPropertyMap( |
|
386 | new PropertyDefinition('idPlayer'), |
|
387 | new PropertyDefinition('id') |
|
388 | ) |
|
389 | ->addPropertyMap( |
|
390 | new PropertyDefinition('idTeam'), |
|
391 | new PropertyDefinition('team'), |
|
392 | [self::class, 'transformTeam'], |
|
393 | [Team::class, 'reverse'] |
|
394 | ) |
|
395 | ->addPropertyMap( |
|
396 | new PropertyDefinition('strNationality'), |
|
397 | new PropertyDefinition('nationality') |
|
398 | ) |
|
399 | ->addPropertyMap( |
|
400 | new PropertyDefinition('strPlayer'), |
|
401 | new PropertyDefinition('name') |
|
402 | ) |
|
403 | ->addPropertyMap( |
|
404 | new PropertyDefinition('strSport'), |
|
405 | new PropertyDefinition('sport', 'sport'), |
|
406 | [self::class, 'transformSport'], |
|
407 | [Sport::class, 'reverse'] |
|
408 | ) |
|
409 | ->addPropertyMap( |
|
410 | new PropertyDefinition('dateBorn'), |
|
411 | new PropertyDefinition('birthDay') // transform to date |
|
412 | ) |
|
413 | ->addPropertyMap( |
|
414 | new PropertyDefinition('dateSigned'), |
|
415 | new PropertyDefinition('dateSigned') // transform to date |
|
416 | ) |
|
417 | ->addPropertyMap( |
|
418 | new PropertyDefinition('strSigning'), |
|
419 | new PropertyDefinition('signing') |
|
420 | ) |
|
421 | ->addPropertyMap( |
|
422 | new PropertyDefinition('strWage'), |
|
423 | new PropertyDefinition('wage') |
|
424 | ) |
|
425 | ->addPropertyMap( |
|
426 | new PropertyDefinition('strBirthLocation'), |
|
427 | new PropertyDefinition('birthLocation') |
|
428 | ) |
|
429 | ->addPropertyMap( |
|
430 | new PropertyDefinition('strDescriptionEN'), |
|
431 | new PropertyDefinition('description') |
|
432 | ) |
|
433 | ->addPropertyMap( |
|
434 | new PropertyDefinition('strGender'), |
|
435 | new PropertyDefinition('gender') |
|
436 | ) |
|
437 | ->addPropertyMap( |
|
438 | new PropertyDefinition('strPosition'), |
|
439 | new PropertyDefinition('position') |
|
440 | ) |
|
441 | ->addPropertyMap( |
|
442 | new PropertyDefinition('strFacebook'), |
|
443 | new PropertyDefinition('facebook') |
|
444 | ) |
|
445 | ->addPropertyMap( |
|
446 | new PropertyDefinition('strWebsite'), |
|
447 | new PropertyDefinition('website') |
|
448 | ) |
|
449 | ->addPropertyMap( |
|
450 | new PropertyDefinition('strTwitter'), |
|
451 | new PropertyDefinition('strTwitter') |
|
452 | ) |
|
453 | ->addPropertyMap( |
|
454 | new PropertyDefinition('strInstagram'), |
|
455 | new PropertyDefinition('instagram') |
|
456 | ) |
|
457 | ->addPropertyMap( |
|
458 | new PropertyDefinition('strYoutube'), |
|
459 | new PropertyDefinition('youtube') |
|
460 | ) |
|
461 | ->addPropertyMap( |
|
462 | new PropertyDefinition('strHeight'), |
|
463 | new PropertyDefinition('height') |
|
464 | ) |
|
465 | ->addPropertyMap( |
|
466 | new PropertyDefinition('strWeight'), |
|
467 | new PropertyDefinition('weight') |
|
468 | ) |
|
469 | ->addPropertyMap( |
|
470 | new PropertyDefinition('strThumb'), |
|
471 | new PropertyDefinition('thumb') |
|
472 | ) |
|
473 | ->addPropertyMap( |
|
474 | new PropertyDefinition('strCutout'), |
|
475 | new PropertyDefinition('strCutout') |
|
476 | ) |
|
477 | ->addPropertyMap( |
|
478 | new PropertyDefinition('strLocked'), |
|
479 | new PropertyDefinition('locked') |
|
480 | ); |
|
481 | // strTeam |
|
482 | // idSoccerXML |
|
483 | // idPlayerManager |
|
484 | // intSoccerXMLTeamID |
|
485 | // strDescriptionDE |
|
486 | // strDescriptionFR |
|
487 | // strDescriptionCN |
|
488 | // strDescriptionIT |
|
489 | // strDescriptionJP |
|
490 | // strDescriptionRU |
|
491 | // strDescriptionES |
|
492 | // strDescriptionPT |
|
493 | // strDescriptionSE |
|
494 | // strDescriptionNL |
|
495 | // strDescriptionHU |
|
496 | // strDescriptionNO |
|
497 | // strDescriptionIL |
|
498 | // strDescriptionPL |
|
499 | // strCollege |
|
500 | // intLoved |
|
501 | // strFanart1 |
|
502 | // strFanart2 |
|
503 | // strFanart3 |
|
504 | // strFanart4 |
|
505 | } |
|
506 | ||
507 | } |
|
508 |