JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "Mapper.php"

Full Path: /var/www/laravel_filter/vendor/mercadopago/dx-php/src/MercadoPago/Serialization/Mapper.php
File size: 553 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace MercadoPago\Serialization;

/**
 * Mapper trait.
 */
trait Mapper
{
    /**
     * Method responsible for return mapped class for entity filled.
     * @param string $field field to be mapped.
     * @return mixed mapped class.
     */
    public function map(string $field)
    {
        $map = $this->getMap();
        return isset($map[$field]) ? $map[$field] : null;
    }


    /**
     * Method responsible for getting map of entities.
     * @return array map of entities.
     */
    abstract public function getMap(): array;
}