protected function parseInput(string $input)
	{
		$category = explode('|', $input);

		if (isset($category[0]) && trim($category[0]) != '') {
			$this->category_id = urldecode($category[0]);
		}

		if (isset($category[1]) && trim($category[1]) != '') {
			$this->category_name = urldecode($category[1]);
		}
	}
protected function parseInput(string $input)
	{
		$category = explode('|', $input);

		if (isset($category[0]) && trim($category[0]) != '') {
			$this->category_id = urldecode($category[0]);
		}

		if (isset($category[1]) && trim($category[1]) != '') {
			$this->category_name = urldecode($category[1]);
		}
	}
protected function parseInput ( string $ input ) { $ category = explode ( '|' , $ input ) ; if ( isset ( $ category [ 0 ] ) && trim ( $ category [ 0 ] ) != '' ) { $ this -> category_id = urldecode ( $ category [ 0 ] ) ; } if ( isset ( $ category [ 1 ] ) && trim ( $ category [ 1 ] ) != '' ) { $ this -> category_name = urldecode ( $ category [ 1 ] ) ; } }
Parses the given category info.

@param  string $input

@return void
Parses the given category info .