13 use InvalidArgumentException;
26 private $form =
"long";
30 private $multiple =
"";
34 private $genderForm =
"";
38 public function __set($name, $value)
40 $nameParts = explode(
"-", $name);
42 for ($i = count($nameParts) - 1; $i >= 0; --$i) {
44 $attr = ucfirst($nameParts[$i]) . $attr;
46 $attr = $nameParts[$i] . $attr;
49 if (!isset($this->{$attr})) {
50 throw new InvalidArgumentException(
"Property \"$attr\" ($name) does not exist in " . __CLASS__);
52 $this->{$attr} = $value;
57 return $this->{$name};