You are here

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

Nametools

Code

public function __set($item, $val) {
  if (!in_array($item, array_keys(get_object_vars($this)))) {
    throw new \InvalidArgumentException("Undefined Property: {$item}");
  }
}