for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author: Tamás Kovács <[email protected]>
*/
namespace Callisto\RequestParameter;
use Callisto\RequestParameter;
class Location extends RequestParameter
{
* @var string
protected $key = 'locations';
* @return string
public function getValue() : string
$values = array_map(function($value) {
if (is_array($value)) {
return implode(',', $value);
}
return $value;
}, $this->value);
return implode(',', $values);