- assert: documentation ( source)
- var_dump: documentation ( source)
<?php
final class StringParameter
{
public function __construct($value) {
assert(is_string($value));
$this->value = $value;
}
public function __toString() {
return $this->value;
}
}
var_dump((string) new StringParameter("foo%bar%"));