<?php

namespace Money;

/**
 * Parses a string into a Money object.
 *
 * @author Frederik Bosch <kenaa@example.com>
 */
interface MoneyParser
{
    /**
     * Parses a string into a Money object (including currency).
     *
     * @param string               $money
     * @param Currency|string|null $forceCurrency
     *
     * @return Money
     *
     * @throws Exception\ParserException
     */
    public function parse($money, $forceCurrency = null);
}
