public __construct ( array $options = [] ) | ||
$options | array | CSR options, currently only "must_staple" = true | false is supported |
public function __construct(array $options = [])
{
$mustStaple = isset($options["must_staple"]) ? $options["must_staple"] : false;
if (!is_bool($mustStaple)) {
throw new \InvalidArgumentException(sprintf("\$mustStaple must be of type bool, %s given", gettype($mustStaple)));
}
$this->mustStaple = $mustStaple;
}