src/Elements/Parents/Field.php
public function extractArgs($args)
	{
		foreach ($args as $k => $v) {
			if (property_exists($this, $k)) {
				$this->$k = $v;
			} else {
				throw new \InvalidArgumentException("{$k} is not a valid option.");
			}
		}
	}
public function extractArgs($args)
	{
		foreach ($args as $k => $v) {
			if (property_exists($this, $k)) {
				$this->$k = $v;
			} else {
				throw new \InvalidArgumentException("{$k} is not a valid option.");
			}
		}
	}
public function extractArgs ( $ args ) { foreach ( $ args as $ k => $ v ) { if ( property_exists ( $ this , $ k ) ) { $ this -> $ k = $ v ; } else { throw new \ InvalidArgumentException ( "{$k} is not a valid option." ) ; } } }
Loops through a given array and it the key
exists as a property on this object, it is
assigned.

@param  array $args Associative array
@return self
Loops through a given array and it the key exists as a property on this object it is assigned .