public function extractValue(Array $match)
	{
		switch(gettype($match['value']))
		{
			case 'string':
				return $match['value'];
				break;
			case 'object':
				// Extract Closures
				if(get_class($match['value']) == 'Closure') {
					return $this->closureExtract($match);
				}
				// Extract Classes
				return $this->classExtract($match);
				break;
		}

		throw new Exceptions\UnexpectedMaskValue($match['value'], $match['raw']);
	}
public function extractValue(Array $match)
	{
		switch(gettype($match['value']))
		{
			case 'string':
				return $match['value'];
				break;
			case 'object':
				// Extract Closures
				if(get_class($match['value']) == 'Closure') {
					return $this->closureExtract($match);
				}
				// Extract Classes
				return $this->classExtract($match);
				break;
		}

		throw new Exceptions\UnexpectedMaskValue($match['value'], $match['raw']);
	}
public function extractValue ( Array $ match ) { switch ( gettype ( $ match [ 'value' ] ) ) { case 'string' : return $ match [ 'value' ] ; break ; case 'object' : // Extract Closures if ( get_class ( $ match [ 'value' ] ) == 'Closure' ) { return $ this -> closureExtract ( $ match ) ; } // Extract Classes return $ this -> classExtract ( $ match ) ; break ; } throw new Exceptions \ UnexpectedMaskValue ( $ match [ 'value' ] , $ match [ 'raw' ] ) ; }
Checks the type of value and formats it, as we could be getting closures passed

@return void
@author Dan Cox
Checks the type of value and formats it as we could be getting closures passed