for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WebTheory\Saveyour\Concerns;
use WebTheory\Saveyour\Fields\Hidden;
trait MultiValueSelectionTrait
{
/**
*
*/
protected function isSelectionSelected(string $value): bool
return in_array($value, $this->value);
}
* Set the value of value
* @param mixed $value
* @return self
public function setValue($value)
$this->value = (array) $value;
value
return $this;
protected function createClearControlField(): Hidden
return new Hidden();