for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tisd\Sdk\Validator;
class AbstractValidator
{
protected $haystack;
public function isValid($value)
return in_array($value, $this->getHaystack());
}
protected function getHaystack()
return $this->haystack;
protected function setHaystack($haystack)
$this->haystack = $haystack;
return $this;