public function MatchObject::__set in Bibliography Module 7.2
Set magic method prevents setting undefined variables
Parameters
string $item:
string $value:
File
- lib/
msrc-authortool/ src/ Nametools/ MatchObject.php, line 37
Class
- MatchObject
- MatchObject Abstract Class
Namespace
NametoolsCode
public function __set($item, $val) {
if (!in_array($item, array_keys(get_object_vars($this)))) {
throw new \InvalidArgumentException("Undefined Property: {$item}");
}
}