for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dwo\Aggregator\Model;
/**
* Class GroupSet
*
* @author Dave Www <[email protected]>
*/
class GroupSet
{
* @var array
protected $in;
* @var string
protected $out;
* @param array $in
* @param string $out
public function __construct(array $in, $out)
$this->in = $in;
$this->out = $out;
}
* @param string $value
* @return string
public function getValue($value)
if (!in_array($value, $this->in)) {
$value = $this->out;
return $value;