public static function create($type, $content)
	{
		if (empty($type)) {
			throw new AlertTypeException('Unable to create message with invalid type.');
		}

		if (empty($content)) {
			throw new AlertContentException('Unable to create message with invalid content.');
		}

		return new self($type, $content);
	}
public static function create($type, $content)
	{
		if (empty($type)) {
			throw new AlertTypeException('Unable to create message with invalid type.');
		}

		if (empty($content)) {
			throw new AlertContentException('Unable to create message with invalid content.');
		}

		return new self($type, $content);
	}
public static function create ( $ type , $ content ) { if ( empty ( $ type ) ) { throw new AlertTypeException ( 'Unable to create message with invalid type.' ) ; } if ( empty ( $ content ) ) { throw new AlertContentException ( 'Unable to create message with invalid content.' ) ; } return new self ( $ type , $ content ) ; }
Create a new alerter instance.

@param string $type
@param string $content

@return self

@throws \Cornford\Alerter\Exceptions\AlertContentException
@throws \Cornford\Alerter\Exceptions\AlertTypeException
Create a new alerter instance .