public function map($class, $presenter = null)
    {
        if (is_array($class)) {
            foreach ($class as $model => $present) {
                $this->mappings->put($model, $present);
            }
        } else {
            $this->mappings->put($class, $presenter);
        }
    }
public function map($class, $presenter = null)
    {
        if (is_array($class)) {
            foreach ($class as $model => $present) {
                $this->mappings->put($model, $present);
            }
        } else {
            $this->mappings->put($class, $presenter);
        }
    }
public function map ( $ class , $ presenter = null ) { if ( is_array ( $ class ) ) { foreach ( $ class as $ model => $ present ) { $ this -> mappings -> put ( $ model , $ present ) ; } } else { $ this -> mappings -> put ( $ class , $ presenter ) ; } }
Add another presenter mapping.

@param string|array $class
@param string|null $presenter [optional if array passed]
Add another presenter mapping .