public function createRecurrenceType($type)
	{
		if (!isset($this->recurrenceTypes[$type])) {
			throw new \OutOfBoundsException("A recurrence type called {$type} does not exist within the factory.");
		}

		$recurrenceType = new $this->recurrenceTypes[$type]();

		return $recurrenceType;
	}
public function createRecurrenceType($type)
	{
		if (!isset($this->recurrenceTypes[$type])) {
			throw new \OutOfBoundsException("A recurrence type called {$type} does not exist within the factory.");
		}

		$recurrenceType = new $this->recurrenceTypes[$type]();

		return $recurrenceType;
	}
public function createRecurrenceType ( $ type ) { if ( ! isset ( $ this -> recurrenceTypes [ $ type ] ) ) { throw new \ OutOfBoundsException ( "A recurrence type called {$type} does not exist within the factory." ) ; } $ recurrenceType = new $ this -> recurrenceTypes [ $ type ] ( ) ; return $ recurrenceType ; }
Creates and returns an instance of a stored recurrence type.

@param  string				$type
@return RecurrenceInterface
@throws OutOfBoundsException
Creates and returns an instance of a stored recurrence type .