Skip to content

Instantly share code, notes, and snippets.

@trikitrok
Last active June 30, 2019 20:51
Show Gist options
  • Select an option

  • Save trikitrok/1eadf6e2f681bd48aa50abc1562783ce to your computer and use it in GitHub Desktop.

Select an option

Save trikitrok/1eadf6e2f681bd48aa50abc1562783ce to your computer and use it in GitHub Desktop.
<?php
namespace Trovit\B2B\AdClick\Domain;
class ClickValidation
{
private $validators
public function __construct(array $validators)
{
$this->validators = $validators;
}
public function isValid(array $click)
{
foreach ($this->validators as $validator) {
if (!$validator->isValid($click)) {
return false;
}
}
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment