public function setBBCodeCallback($code, Closure $callback) {
		if (is_array($code)) {
			foreach ($code as $part) {
				$this->actions[$part] = $callback;
			}
			
			return $this;
		}
		
		$this->actions[$code] = $callback;
		
		return $this;
	}
public function setBBCodeCallback($code, Closure $callback) {
		if (is_array($code)) {
			foreach ($code as $part) {
				$this->actions[$part] = $callback;
			}
			
			return $this;
		}
		
		$this->actions[$code] = $callback;
		
		return $this;
	}
public function setBBCodeCallback ( $ code , Closure $ callback ) { if ( is_array ( $ code ) ) { foreach ( $ code as $ part ) { $ this -> actions [ $ part ] = $ callback ; } return $ this ; } $ this -> actions [ $ code ] = $ callback ; return $ this ; }
Set the callback action for the code

Callback will be called with the arguments:
- string $content BBcode's content
- string $code    BBCode
- string $origin  Original string from translation definition

Callback must return string value

@param  string | array $code
@param  Closure        $callback
@return BBCodes
Set the callback action for the code