src/Mail/Mail.php
public function render($htmlview = null, $textview = null) {

		if(null !== $htmlview && false === is_string($htmlview)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($htmlview)), E_USER_ERROR);
		}

		if(null !== $textview && false === is_string($textview)) {
			return trigger_error(sprintf('Argument 2 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($textview)), E_USER_ERROR);
		}

		$this -> viewmodels = ['html' => $htmlview, 'text' => $textview];

		return $this;
	}
public function render($htmlview = null, $textview = null) {

		if(null !== $htmlview && false === is_string($htmlview)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($htmlview)), E_USER_ERROR);
		}

		if(null !== $textview && false === is_string($textview)) {
			return trigger_error(sprintf('Argument 2 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($textview)), E_USER_ERROR);
		}

		$this -> viewmodels = ['html' => $htmlview, 'text' => $textview];

		return $this;
	}
public function render ( $ htmlview = null , $ textview = null ) { if ( null !== $ htmlview && false === is_string ( $ htmlview ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type string, "%s" given' , __METHOD__ , gettype ( $ htmlview ) ) , E_USER_ERROR ) ; } if ( null !== $ textview && false === is_string ( $ textview ) ) { return trigger_error ( sprintf ( 'Argument 2 passed to %s() must be of the type string, "%s" given' , __METHOD__ , gettype ( $ textview ) ) , E_USER_ERROR ) ; } $ this -> viewmodels = [ 'html' => $ htmlview , 'text' => $ textview ] ; return $ this ; }
Parses the message by given an optional HTML view and an optional plain text view
@param string $htmlview
@param string $textview
@return sFire\Mail\Mail
Parses the message by given an optional HTML view and an optional plain text view