<?php
namespace App\Utils\BaseParser\TextParser\Types;

/**
 * Alphanumeric characters
 * @author Lucian Sirbu
 *
 */
class Association extends \App\Utils\BaseParser\TextParser\BlockRegexpAbstract
{
	protected $extractRegexp = "/^(?P<rawData>[0-9\-\,]+)/";

	/**
	 * (non-PHPdoc)
	 * @see \App\Utils\BaseParser\TextParser\BlockRegexpAbstract::formatExtractedData()
	 */
	protected function formatExtractedData($str, $matchesObj)
	{
		return \App\Utils\BaseParser\Utils\AssociationToArrayConvertor::getInstance()->extractFromDashNotation($str);
	}
}
