original_string: 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);
  	}
code: 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);
  	}
code_tokens: 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 ) ; }
docstring: Create a new alerter instance.
  
  @param string $type
  @param string $content
  
  @return self
  
  @throws \Cornford\Alerter\Exceptions\AlertContentException
  @throws \Cornford\Alerter\Exceptions\AlertTypeException
docstring_tokens: Create a new alerter instance .