src/Languageproject.php
public function toQuery() : array
	{
		$array = [];

		foreach (get_object_vars($this) as $name => $value)
		{
			if (null === $value)
			{
				continue;
			}

			if (is_array($value))
			{
				if (count($value))
				{
					foreach ($value as $v)
					{
						$array[] = [
							'name'     => $name . '[]',
							'contents' => $v
						];
					}
				}
			}
			else
			{
				$array[] = [
					'name'     => $name,
					'contents' => $value
				];
			}
		}

		return $array;
	}
public function toQuery() : array
	{
		$array = [];

		foreach (get_object_vars($this) as $name => $value)
		{
			if (null === $value)
			{
				continue;
			}

			if (is_array($value))
			{
				if (count($value))
				{
					foreach ($value as $v)
					{
						$array[] = [
							'name'     => $name . '[]',
							'contents' => $v
						];
					}
				}
			}
			else
			{
				$array[] = [
					'name'     => $name,
					'contents' => $value
				];
			}
		}

		return $array;
	}
public function toQuery ( ) : array { $ array = [ ] ; foreach ( get_object_vars ( $ this ) as $ name => $ value ) { if ( null === $ value ) { continue ; } if ( is_array ( $ value ) ) { if ( count ( $ value ) ) { foreach ( $ value as $ v ) { $ array [ ] = [ 'name' => $ name . '[]' , 'contents' => $ v ] ; } } } else { $ array [ ] = [ 'name' => $ name , 'contents' => $ value ] ; } } return $ array ; }
Convert tye object to query string.

@return array
Convert tye object to query string .