src/Client/Commands/LogCommand.php
public function setData($data, $key = null)
	{
		if (is_array($data) && $key === null) {
			$this->data = $data;

			return $this;
		}

		if ($key === null)
			$key = 'data';

		$this->data[$key] = $data;

		return $this;
	}
public function setData($data, $key = null)
	{
		if (is_array($data) && $key === null) {
			$this->data = $data;

			return $this;
		}

		if ($key === null)
			$key = 'data';

		$this->data[$key] = $data;

		return $this;
	}
public function setData ( $ data , $ key = null ) { if ( is_array ( $ data ) && $ key === null ) { $ this -> data = $ data ; return $ this ; } if ( $ key === null ) $ key = 'data' ; $ this -> data [ $ key ] = $ data ; return $ this ; }
setting data to add for the logging action

we suggest setting an array

@param array|mixed $data
@param null $key

@return $this
setting data to add for the logging action