public function typeShorthand($type, $params = [])
		{
			$options = [];
			$content = NULL;
			$count = count($params);

			if ($count < 1) {
				# no params passed, set last notification type
				$this->updateLastNotification(['type' => $type]);
			} elseif ($count == 1) {
				if (is_array($params[0])) {
					# assume its an options array
					$options = $params[0];
				} else {
					# assume the one param is content
					$content = $params[0];
				}
			} elseif ($count == 2) {
				if (is_array($params[1])) {
					# assume second param is options array, first param is content
					$content = $params[0];
					$options = $params[1];
				} else {
					$content = $params[0];
					$options = ['title' => $params[1]];
				}
			} elseif ($count == 3) {
				if (is_array($params[2])) {
					$content = $params[0];
					$options = array_merge($params[2], ['title' => $params[1]]);
				} else {
					throw new Exception("When 3 parameters given, third parameter must be an Array");
				}
			}

			return $this->add($content, array_merge($options, ['type' => $type]));
		}
public function typeShorthand($type, $params = [])
		{
			$options = [];
			$content = NULL;
			$count = count($params);

			if ($count < 1) {
				# no params passed, set last notification type
				$this->updateLastNotification(['type' => $type]);
			} elseif ($count == 1) {
				if (is_array($params[0])) {
					# assume its an options array
					$options = $params[0];
				} else {
					# assume the one param is content
					$content = $params[0];
				}
			} elseif ($count == 2) {
				if (is_array($params[1])) {
					# assume second param is options array, first param is content
					$content = $params[0];
					$options = $params[1];
				} else {
					$content = $params[0];
					$options = ['title' => $params[1]];
				}
			} elseif ($count == 3) {
				if (is_array($params[2])) {
					$content = $params[0];
					$options = array_merge($params[2], ['title' => $params[1]]);
				} else {
					throw new Exception("When 3 parameters given, third parameter must be an Array");
				}
			}

			return $this->add($content, array_merge($options, ['type' => $type]));
		}
public function typeShorthand ( $ type , $ params = [ ] ) { $ options = [ ] ; $ content = NULL ; $ count = count ( $ params ) ; if ( $ count < 1 ) { # no params passed, set last notification type $ this -> updateLastNotification ( [ 'type' => $ type ] ) ; } elseif ( $ count == 1 ) { if ( is_array ( $ params [ 0 ] ) ) { # assume its an options array $ options = $ params [ 0 ] ; } else { # assume the one param is content $ content = $ params [ 0 ] ; } } elseif ( $ count == 2 ) { if ( is_array ( $ params [ 1 ] ) ) { # assume second param is options array, first param is content $ content = $ params [ 0 ] ; $ options = $ params [ 1 ] ; } else { $ content = $ params [ 0 ] ; $ options = [ 'title' => $ params [ 1 ] ] ; } } elseif ( $ count == 3 ) { if ( is_array ( $ params [ 2 ] ) ) { $ content = $ params [ 0 ] ; $ options = array_merge ( $ params [ 2 ] , [ 'title' => $ params [ 1 ] ] ) ; } else { throw new Exception ( "When 3 parameters given, third parameter must be an Array" ) ; } } return $ this -> add ( $ content , array_merge ( $ options , [ 'type' => $ type ] ) ) ; }
Set priority property for chaining notification

@param 	$params
@return $this
Set priority property for chaining notification