booleanUtils = $booleanUtils; } /** * {@inheritdoc} * @return bool * @throws \InvalidArgumentException */ public function evaluate(array $data) { if (!isset($data['value'])) { throw new \InvalidArgumentException('Boolean value is missing.'); } $value = $data['value']; return $this->booleanUtils->toBoolean($value); } }